How to Open and Test a PHP Script in WampServer
How to Open and Test a PHP Script in WampServer
WampServer is a web development environment for Windows. It's easy to use, and once you know how, you'll be able to open and test a PHP script in it with no trouble.
Steps

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.)

Go to driver you installed wamp on\wamp64\www\.

Create a new folder. 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).

Open any text editor (like Notepad).

Write the script. Type in the script you want to test.

Save the script. Save the script to the folder we created located at driver you installed WAMP on (\wamp64\www\wikihow). 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. Wikihow.php).

Close the text editor.

Open your browser.

Type “Local Host” in the address bar.

Click on the project name from your projects

Click on the PHP file to open it.

Check the PHP file. If you spot any errors in the php file, go to \wamp64\www\wikihow 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.

What's your reaction?

Comments

https://umatno.info/assets/images/user-avatar-s.jpg

0 comment

Write the first comment for this!