How to Open and Test a PHP Script in WampServer

Download WAMP., Go to driver you installed wamp on\wamp64\www\. , Create a new folder., Open any text editor (like Notepad). , Write the script., Save the script., Close the text editor. , Open your browser. , Type “Local Host” in the address bar...

12 Steps 1 min read Medium

Step-by-Step Guide

  1. Step 1: Download WAMP.

    Once you have downloaded it, locate the .exe and open it.

    Download the WAMP version that suits your OS (e.g. if your OS is 64 bit, download that version.)
  2. Step 2: Go to driver you installed wamp on\wamp64\www\.

    , Right click on any blank space and select New.

    Then choose Folder and give the folder a name (the folder name will be the project name in WampServer). ,, Type in the script you want to test. , Save the script to the folder we created located at driver you installed WAMP on (\wamp64\www\LifeGuide Hub).

    That can be done by clicking Ffile then Save as.

    Give the file a name and do not forget to add .php (PHP File Extension) at the end of the file name (Ex.

    LifeGuide Hub.php). ,,,,,, If you spot any errors in the php file, go to \wamp64\www\LifeGuide Hub and right click on the PHP.

    Click File > Open with and then Notepad.

    Try to find out the error and fix it.

    When you're done, click File > Save and refresh the PHP page to know if the error is fixed.
  3. Step 3: Create a new folder.

  4. Step 4: Open any text editor (like Notepad).

  5. Step 5: Write the script.

  6. Step 6: Save the script.

  7. Step 7: Close the text editor.

  8. Step 8: Open your browser.

  9. Step 9: Type “Local Host” in the address bar.

  10. Step 10: Click on the project name from your projects

  11. Step 11: Click on the PHP file to open it.

  12. Step 12: Check the PHP file.

Detailed Guide

Once you have downloaded it, locate the .exe and open it.

Download the WAMP version that suits your OS (e.g. if your OS is 64 bit, download that version.)

, Right click on any blank space and select New.

Then choose Folder and give the folder a name (the folder name will be the project name in WampServer). ,, Type in the script you want to test. , Save the script to the folder we created located at driver you installed WAMP on (\wamp64\www\LifeGuide Hub).

That can be done by clicking Ffile then Save as.

Give the file a name and do not forget to add .php (PHP File Extension) at the end of the file name (Ex.

LifeGuide Hub.php). ,,,,,, If you spot any errors in the php file, go to \wamp64\www\LifeGuide Hub and right click on the PHP.

Click File > Open with and then Notepad.

Try to find out the error and fix it.

When you're done, click File > Save and refresh the PHP page to know if the error is fixed.

About the Author

R

Richard Robinson

Enthusiastic about teaching practical skills techniques through clear, step-by-step guides.

127 articles
View all articles

Rate This Guide

--
Loading...
5
0
4
0
3
0
2
0
1
0

How helpful was this guide? Click to rate: