how do i run some php coding?

You need a webhost.

000webhost.com

Once you signup, connect to your FTP and upload the file.
 
Install xampp on your local computer to test out your code!
 
Install xampp on your local computer to test out your code!

Then after you that, watch this guys videos.

Code:
http://www.youtube.com/profile?user=thenewboston&view=videos&query=php

He has a video on installing xampp too. Not hard to do at all. Took me 10 minutes from start of download.:D
 
all the above but dont forget to make sure your php code starts with

<?php

and ends with

?>

and to save the file type as .php

otherwise its definitely not going to work...
 
instal xampp on local pc then go its httdocs folder and make a new folder and save it there after that go in browser and write http://localhots after that u will c xampp frontend ok here wil b inside php myadmin clik here and aranage data base and mantion in ur php config or connectiondb.php file mantion there user name of localhost password if u have give in xampp and give them database name and then come back and import database file which will b in database folder import it nur created databasse after that go agin on url bar and run localhost/ursitename/name then it will run in front of u if u will feel any prob reply me on [email protected] i will give u reply asap view my site must ok www.madnites.com and give me reviews thanks


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.
 
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.
 
Back
Top