Discussion in 'PHP & Perl' started by links, Apr 10, 2009.
i have some php coding, how do i run it?
You need a webhost.
Once you signup, connect to your FTP and upload the file.
Install xampp on your local computer to test out your code!
Then after you that, watch this guys videos.
He has a video on installing xampp too. Not hard to do at all. Took me 10 minutes from start of download.
all the above but dont forget to make sure your php code starts with
and ends with
and to save the file type as .php
otherwise its definitely not going to work...
this is a good suggestion, try it
If you don't want to install localhost on your machine you can also try this new software called roadsend. It's a php compiler.
personally i prefer to run the code on the actual machine its going on, especially if its a lot of code, or a php script...
there are so many different ways a server can be configured you can spend hours getting the site to run perfectly on your testbed move it over to the place its being hosted and find yourself spending a load more time trying to get it working again...
Install WAMP or xampp on your computer, place your php script in www folder, run the programe (WAMP/xampp) now type your browser "localhost" to test out your code!
You can also install LAMP. Install a Linux distribution and then apache, PHP and MySQL.
I use XSAS, no installation required - works great.
Thanks guys i am also getting problem now my problem is solved..
XAMPP on Windows, MAMP on Mac OSX, or just use your package manager if you run some kind of Linux/BSD.
Nobody asked you if your php code is part of an online project (such as a website) or just a php command line program. PHP evolved into more than a webpage programming language, you can use it for scripting and such. You can run the php via a webserver (like Apache+PHP interpreter, or more easily a XAMPP version that already contains PHP, Apache, MySQL etc) or you can run it with the php command line interpreter (php.exe if on windows) if you have a "program" php file.
this thread must be your record, almost 3 years old!
Separate names with a comma.