Go to the menu - Go to the contents

[Site map] You are here --- > Newbies Paradise > Tutorials > Official > Website > Reading a tutorial

A useful program: WAMP

Avatar
Author : M@teo21
Creation : : on 07/31/2007 05:31:55 PM
Last modification: : on 09/04/2007 11:33:53 AM
Rate and comment this tutorial
Print this tutorial
The first part was an introduction to the universe of PHP. It was just to warm you up. I know you guys like practical things, so we are going to start working!
We are just getting prepared and for that, we are going to use a French program called WampServer which will be very useful for you :)
Chapter Contents :
Previous Chapter Contents Next Chapter

Why do I need this program?

A good question to ask is "why do you need this program?" :p

As I explained to you in the previous chapter, only the server can read PHP and you the client you cannot.
There's a problem then! How can you check that your work is correct with a computer which cannot read PHP?
You must find a way to teach your computer PHP and be able to design your website.
WampServer is the solution. It's so simplistic to install a PHP program and think that's all you need to do! You need several programs.
WampServer (let's abbreviate it WAMP) is actually a "package" which contains all essential programs needed to process PHP. You don't need to do anything, they install automatically!

The WAMP website is : www.wampserver.com

For your information, here are the programs installed by WAMP :


WAMP is the acronym for Windows Apache MySQL PHP.


You don't need to understand the functioning of all these programmes for the moment but you need to download it because it is essential for the rest of our work. It is a very discreet program.
Let us now install WAMP.

Install WAMP

Action speaks louder than words so let's attack! :pirate:

WAMP has a big size and you need to download it no matter your connection speed ;)

WAMP (21 Mo)


Follow installation instructions.

Towards the end of the process you need to specify the folder you are going to use. I advise you to use the default folder and press OK.
User image


There is a series of question to answer during the installation process. Just use the default value each time and press next.
If you are using Firefox, WAMP will ask you if you want to use it as your default browser. Answer yes!

At the end of the installation, the Apache server (one of the program included in WAMP) will start. If your firewall wants to block it, authorised the program to run :p

User image


At the end, you are asked if you want to start WAMP. Do not unmark the box so that WAMP can start at the end of the installation.

You can use the shortcut in the menu bar next time you want to start WAMP.


How do we know that WAMP is running?


I told you the program is discreet so when you start it, you can notice an icon on the right of the task bar (near the clock)

User image


If the installation is correct you should have exactly the same thing as me and if you put the cursor, on it you can read "All services running".
Congratulations! You have installed WAMP succesfully :D

Configure WAMP

This is the last step: you need to configure WAMP. It is very easy and fast to do.


Now left-click on the icon located on the task bar. You should have the WAMP main menu as follow:

User image


The first element of the menu, "Localhost", takes you to the WAMP welcome page. You can see all the projects you are going to work on (projects section)

User image</image>


I have not yet created a project. To create a project it is very simple: you just need to create a new directory in the "wwww" folder.

A project corresponds to a website. We say that you have a website project and you are working on it. At the beginning, you will certainly have a single project but you may be working on several projects at the same time later on. ^^


The second interesting aspect of the menu is "phpMyAdmin" which opens....PhpMyAdmin :p We will talk about it later on.

And finally if you click on the "www directory" in the menu, WAMP will open the Windows browser in your www folder. This folder is the one where your PHP files could be read correctly. As indicated above, it is advised to create a sub-folder (name it "tests" for instance) and put your PHP files inside. In my example it is in C:\wamp\www\tests.

When you finish creating the sub-folder reload the WAMP welcome page and you should have your folder displayed:

User image


You just need to click on the folder to execute the web pages inside. You have not created PHP files but don't worry you will do it soon ;)


And to close WAMP right click and close.

Quiz

What is WAMP used for?

How do we know that WAMP is running?
Which ot the following program is not on WAMP?
Which element of WAMP opens the welcome page?


Your computer is ready to swallow some PHP now :)
In the next chapter we are going to work on PHP codes and you will start writing your first PHP scripts !
Previous Chapter Contents Next Chapter
Author : M@teo21
Rate and comment this tutorial
Print this tutorial

Change your template | Learn more about NP | Site map | Terms of use | Rules | RSS feed | XHTML 1.0 | CSS 2.0
Powered by Simple IT SARL: Contact us

There is nothing else to read, you have to go up now !

Do you want to be published here? Contact us.

Number of Newbies connected 5 Newbies Connected | SQL requests 10 Requests | Page loading delay 0.049s (0.0378s)