Friday, February 1, 2013

// // Leave a Comment

How to create & execute PHP files on Window

Once you are done with Installation of Wamp Server the next step is How to execute this code on Windows . . If you have not installed Wamp Server then check How to Run php code on Windows tutorial first.


Now just follow the simple steps:

1.If the Wamp Server is not started automatically then start it by Start >> Program Files >> Wamp Server >> Start Wamp Server. If it is already started then you can see small icon in try or taskbar showing green.

2.There us Base Directory for Wamp Server. Your all projects will come under this. Navigate to your Base directory path where you have installed Wamp Server ( C:/wamp/www)

3. You can create your own directory under www. Supose your directory name is "test". Open Notepad editor under tech directory and write down small php code shown below.
4. Save the above text file with test.php ( You can save it by using any name )

5. Now click on small Wamp Server icon on taskbar on bottom right corner of window. Say localhost . . You can see your all projects created under www directory. Click on test . . You are done !! You can see output of your php file . . Your code is executed now !!

Thanks :)

Read More