loading

This tutorial walks you through the process of creating an index.php file, being able to run the php file on a local server, and being able to dynamically update the page in a browser using Prepros.

Step 1:

Go to the folder where wamp is and search for the www directory.

Usually, if you have not changed the directory location upon install, it will be here... c:/wamp/www/

Step 2:

In this directory, create a folder, or add a folder of you choice

If you add a folder, make sure the file that you would like to launch is named index.php

Step 3:

If there is no file in the folder, create an index.php file.

For tutorial purposes, write the following lines of code below to see "Hello World" upon execution

Step 4:

Left click on the upward carrot (^) on the taskbar.

Step 5:

Left click on the wamp icon

Step 6:

Click on Apache --> Alias directories --> + Add an alias

Step 7:

Follow directions on the command screen

Step 8:

Open Prepros and drag in file.

Step 9:

Click More Options --> Project Options

Step 10:

Click the "Live Preview Custom Server" box

Step 11:

Type in the server url into the box that pops up.

This url was created in Step 7. For example, for the example above, it is http://localhost/testone

Step 12:

Click "Save Options"

Step 13:

Click on "Live Preview" --> Open Live Preview

Hello World should appear in the browser.

Now, whenever you edit the page and save it, the browser will automatically be updated.
Watch the video for more clarity...

<p>Thanks a lot! This was very helpful and easy to understand.</p><p>Prepros looks a bit different now. In the version of March 2017, this is where you edit it:</p><p>Pre</p>
<p>nice work i also made same tutorial i hope you will like it </p><p>you should put your code into php file make helloworld.php file <br>&lt;br&gt;and put in wamp www folder and run with wamp server.&lt;br&gt;<br>for hello world program in php just follow this tutorial&lt;br&gt; <br>but<br> before that you should have wamp server or xamp server on your <br>pc&lt;br&gt;(wamp/xmap are open source software's and easily can found <br>on google)&lt;br&gt;<br>your 1st php program code:-<br><br> &lt;?php<br> echo &quot;hello world&quot;;<br> ?&gt;<br><br>output:-<br>hello world<br><iframe allowfullscreen="" frameborder="0" height="281" src="//www.youtube.com/embed/7qtqzhdEX-c <br>" width="500"></iframe><br>after this tutorial you can able to move other intermediate level programs of php.</p>
<p>Nicely done. Thanks for sharing this!</p>
<p>your welcome!</p>

About This Instructable

2,455views

8favorites

License:

More by igweckay:Sensors Galore Enable/ Disable Intel VT-x WAMP Alias/ Prepros/ and Hello World webpage tutorial 
Add instructable to: