Monday, October 3, 2011

How to run php files using wamp server?

Let me explain today how to use the wamp server to run the PHP files.  First of all download the Latest wamp server from here:
http://www.wampserver.com/
and install the server.



Step 2:
Run wamp server by this selction
start->All programs->Wamp server->Start wamp server

Now you can see the w icon in system tray.

Step 3: Create PHP file
Let us create our php file first.
Open notepad and type the php code.
save the file inside this folder
c://wamp/www/
also you can create folder inside this folder to more specific.


Note: while saving the file, end the name with .php and don't forget to select all files.

Let us assume i have stored Testing.php
Step 4: Start the server
Left click on the wamp icon in system tray.
It will display list of options.
Select "start all services".


Step 5:Run
Now all services(especially php) is running.
Open the mozilla and type localhost in address bar.
Hit enter
It will show the default page of wamp server.

Now include this Testing.php (my php file name) at the end of the url

For ex:
http://localhost/Testing.php
It will run your php file.

0 comments to “How to run php files using wamp server?”

Post a Comment

Related Posts Plugin for WordPress, Blogger...

Popular posts

 

Computer Hack World Copyright © 2011 -- Template created by O Pregador -- Powered by Blogger