WARNING AND NOTICE

All tricks in this blog are only for educational purpose. Learn these tricks only for your knowledge. Please donot try these to harm any one. We will not take any responsibility in any case. All softwares and tools on this site are here for private purposes only and If you want to use a software for business purpose, please purchase it. I do not host many of these tools. I Post links that I have found from numerous Search engines. I will not be responsible for any of harm you will do by using these tools.

Readmore

Thursday, July 14, 2011

How to run php files using wamp server?


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.