This document provides general guidelines for preparing the environment for PHP development, setting up a PHP project, and developing and running your first PHP application in the NetBeans IDE for PHP.
To follow this tutorial, you need the following software and resources.
|Software or Resource||Version Required|
|NetBeans IDE||PHP download bundle|
|A PHP engine||Version 5|
|A web server||Apache HTTP Server 2.2 is recommended.
|A PHP debugger||XDebug 2.0 or later|
You can install the PHP engine, web server and database separately or use AMP (Apache, MySQL, PHP) packages.
The following documents contain instructions for one or two ways to set up a PHP web stack on your operating system. These instructions are not definitive. The web stack consists of third-party software, your environment may differ, and you might prefer a different AMP package or another way to set up PHP. You might need to supplement our instructions with your own investigations.
For help in installing and starting NetBeans IDE, please see the installation documentation.
To start PHP development in the NetBeans IDE for PHP, you first need to create a project. A project contains the information on the location of the project files and the way you want to run and debug your application (run configuration).
echo "Hello, world! This is my first PHP project!";
Meanwhile, to find information specific to the kind of applications you are developing, use the NetBeans IDE learning trail for that type of application. Each learning trail contains a series of tutorials and guides that range in scope from basic to advanced. The following learning trails are available:
To send comments and suggestions, get support, and keep informed on the latest developments on the NetBeans IDE PHP development features, join the email@example.com mailing list.