Installing WAMP Server

You can download a free copy of the WAMP5 Server from the WAMP Server home page. Download the most recent version of the server into a folder on your hard drive. The file name will be similar to wamp5_1.43.exe. Locate the downloaded file and double click the file to launch the installation.

The WAMP5 Setup Wizard will appear. Click Next. Once you installed wamp server, you need to start it.

To Start WAMP Server
Start>All Programs>WAMP server OR an icon appearing to right side of the task bar

To Test your web server is running or not?
Open Web Browser and write following in the URL Address: http://localhost
If your get a PHP info web page, that means your wamp server is installed successfully. Now you are ready to write PHP hello world code.
Writing your First PHP Program
Create a new PHP file in Dreamweaver or open notepad and save file with .php extension e.g. first.php. Write the following code in your file:
<?php

  echo “Hello World”;

?>

Save your file inside the www folder of wamp installation directory e.g. c:\wamp\www\first.php
Running your First PHP Program
Now run your file from localhost as given below:
http://localhost/first.php
Tagged with: PHP
 

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

 

Looking for something?

Use the form below to search the site:


Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Related News Feeds

Set your Twitter account name in your settings to use the TwitterBar Section.