Source : ct|07.01.09
< Tutorials Computer, Multimedia, Chinese
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.
To download Easyphp, connect you on the easyphp.org site.
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).
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.
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.
With the notepad, type the following source code and save it in a named "essai.php" text file, for example.
echo 'premier programme en php'
Place this file in the directory "C:/ Program files/www".
To start Easyphp click the menu option "EasyPHP" since the Windows desk.
Then click, with the right button of the mouse, the Easyphp icon situated down right on the screen. Then click the option "Web local".
A link to the page "essai.php " appears then in the internet browser.
Click the link to the page "essai.php " and the PHP server runs immediately this page.
© http://turrier.fr (2007)