Wednesday, 3 August 2011

How to run a PHP file on localhost

Posted by pintu singh On 22:41 No comments
1. First download the xampp from http://www.apachefriends.org/en/xampp.html
 
2. Extract the file and double click the exe. This will install Mysql and Apache servers.

 
3. Once the installation is complete, you will find XAMPP under Start / Programs / XAMPP. You can use the XAMPP Control Panel to start/stop all servers. Start Mysql and Apache servers.

4. Write a test.php file and copy it in to C:/Program Files/XAMPP/htdocs/

5. To run the php file, you just need to browse http://localhost/test.php

Note: You can also create any folder inside htdocs and past test.php inside the folder. If you create a folder called test then the address will become http://localhost/test/test.php

To know about php refer this wesbite

http://www.w3schools.com/php

If u want to make a trial on php based website try this site below

http://0fees.net          


POSTED BY
SUSHEEL SINGH


0 comments:

Post a Comment

  • RSS
  • Delicious
  • Digg
  • Facebook
  • Twitter
  • Linkedin
  • Youtube