turrier.fr

Source : ct|07.01.09

< Tutorials Computer, Multimedia, Chinese

Install and use EasyPHP

Easyphp is a free tool which allows to install and to configure quickly and easily a PHP and MySQL environment on a PC. He allows the developer to test easily his various PHP programs and MySQL data bases directly on a PC, without needing to install them in their definitive place to a host.
This tutorial has three parts:

1) Downloading Easyphp;
2) Installing Easyphp;
3) Writing and saving a PHP page;
4 Starting Easyphp;
5) Runing a PHP page.

1) Downloading Easyphp

To download Easyphp, connect you on the easyphp.org site.

image1

Go to the download tab and download the last version of easyphp (file EasyPHP-3.0-setup.exe in the date of January 7th, 2009).

image2

image3

2) Installing Easyphp

The installation of Easyphp is very simple. Once the file easyphp-setup.exe is downloaded on your computer, click it and the installation starts automatically. Simply validate the various proposed dialog boxes.

image4

image5

Once Easyphp is installed, you have an Apache server, a database management system MySQL and an administration tool (PHPMyAdmin) completely configured and ready to work. This environment is in the directory "C:\Program Files\EasyPHP 3.0" on the PC. In this directory the sub directory "www" is used to contain your php pages and the sub directory "mysql/data" is used to contain your mysql data bases.

image6

3) Writing and saving a PHP page

With the notepad, type the following source code and save it in a named "essai.php" text file, for example.

<html>
<head>
<title>Essai</title>
</head>
<body>
<?php
echo 'premier programme en php'
?>
</body>
</html>

Place this file in the directory "C:/ Program files/www".

4) Starting Easyphp

To start Easyphp click the menu option "EasyPHP" since the Windows desk.

image7

Then click, with the right button of the mouse, the Easyphp icon situated down right on the screen. Then click the option "Web local".

image8

A link to the page "essai.php " appears then in the internet browser.

image9

5) Running a PHP page

Click the link to the page "essai.php " and the PHP server runs immediately this page.

image10
Valid XHTML 1.0 Transitional

© http://turrier.fr (2007)