A complete and ready-to-use environment for PHP developers
EasyPHP is a WAMP package including the server-side scripting language PHP, the web server Apache, the SQL server MySQL, as well as development tools such as the database manager PhpMyAdmin, the debugger Xdebug and many others. Nothing to configure. It's already done! You just need to download, intall ... and code. The administration page allows you to list the docroot, extensions,change the Apache port, the timezone, max execution time, error reporting,upload max filesize, add/remove alias, manage modules....
Modules : pre-configured web applications for EasyPHP
You just need to download the module and run the setup. Thus, you can quickly install applications like WordPress (Blog), Spip, Drupal, Joomla! (Content Management System - CMS), Prestashop (eCommerce / Online Shop), phpBB, Phorum (Forum / Bulletin Board) ... An easy way to code and test your templates.
An environment for PHP developers
All errors, warnings and notices including coding best practices and recommended coding standards in PHP are displayed. This configuration is intended to force the beginners and even some experienced programmers to develop good habits and write code clean and consistent..
EasyPHP is portable
You can install it on your system, a USB key, a USB flash drive, a memory card, a portable hard drive... and develop or present locally your PHP code, projects, websites, scripts, applications...
For developers and development only...
Not for production or web hosting. EasyPHP is a development tool and is not intended to host websites or applications. The configuration is optimized for coding and debugging.
- Download EasyPHP from the website www.easyphp.org
- double-click on the downloaded executable
- select an installation directory and follow the instructions
We are not really running EasyPHP as such: we are really a starting up Apache and MySQL. After installation, a short cut to EasyPHP is created in the directory "Start/Programs/EasyPHP". When EasyPHP is launched, an icon appears beside the clock . A right-click gives access to various menus :
- Help: help on EasyPHP
- Log Files: record errors generated by Apache, MySQL and EasyPHP
- Configuration: gives access to various configuration tools
- Explorer: open the directory "www" in Windows Explorer
- Administration : opens the administration page
- Web local : opens local web
- Restart : restarts Apache and MySQL
- Start/Stop : Starts/Stops Apache and MySQL
- Quit : closes EasyPHP
Use the directory "www" or an alias
You must place your files either in the directory "www" or an alias that you have created, so that PHP can interpret your PHP pages. To view your pages, select "local Web" or an Alias on the "Administration" page.
Your first PHP page
There are many ways to program in PHP and there are many suitable text editors (eg specialized for HTML or PHP with syntax highlighting etc). In this example we will use a simple text editor.1.
Open a new file
Type the structure of an HTML page
<title>My first page in PHP</title>
The example is designed to print the current date. The PHP Code is integrated directly into the HTML and starts with
<title>My first page in PHP</title>
Current date. : <?php print (Date("l F d, Y")); ?>
Save the page
Create a new directory in the directory "www" (or in an alias). Save your first PHP page there giving it one of the following extensions: php (recommended), php3, php4.
This is not an absolute rule, but will function with this configuration of EasyPHP. It may necessary to modify these extensions if you choose to upload your pages to a web server which has a different configuration.
For our example we choose the extension .php
Rq: make sure in the screen options of Windows that the extensions of the files whose type is known are visible.
See the result
* DO NOT DO THIS: in Windows Explorer go to the directory "www" (or the directory of an alias) then the directory corresponding to your project and double-click on your example file. You will get an error message.
* DO THIS : Launch EasyPHP, open "local Web", select your work directory (or an alias) then click on "date.php". You will see a web page which will shows the current date; for example: "current Date: Tuesday May 21, 2013".
It is now up to you to create your own PHP pages.