NetBeans IDE PHP Quick Start Tutorial
NetBeans IDE PHP Quick Start Tutorial
You can install the PHP engine, web server and database separately or use AMP (Apache, MySQL, PHP) packages.
netbeans.org/kb/docs/php/quickstart.html?print=yes
1/4
3/5/13
4. In the Project Name text field, enter N e w P H P P r o j e c t . 5. In the Sources Folder field, browse for your PHP document root and create a subfolder there called
N e w P H P P r o j e c t . The document root is the folder where the web server looks for files to open in the browser. The
document root is specified in the web server configuration file. For example, on Xampp, the document root is XAMPP_HOME/htdocs. 6. Leave all other fields with their default values. Click Next. The Run Configuration window opens.
7. In the Run As drop-down list, select Local Web Site. The project will run on your local Apache server. Your other options are to run the project remotely via FTP and to run it from the command line. 8. Leave the Project URL at default. 9. Click Finish. The IDE creates the project. Learn more about Setting up a PHP project in NetBeans.
netbeans.org/kb/docs/php/quickstart.html?print=yes
2/4
3/5/13
e c h o" H e l l o ,w o r l d !T h i si sm yf i r s tP H Pp r o j e c t ! " ;
4. To run the project, position the cursor on the NewPHPProject node and choose Run from the context menu. The figure below shows what you should see in the browser window:
Next Steps
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: PHP Programming Basic Java Programming Java GUI Applications Web Services Applications Java EE & Java Web Applications Mobile Applications NetBeans Plug-ins and Rich-Client Applications C/C++ Applications
netbeans.org/kb/docs/php/quickstart.html?print=yes
3/4
3/5/13
Send Feedb ack on This Tutorial To send comments and suggestions, get support, and keep informed on the latest developments on the NetBeans IDE PHP development features, join the users@php.netbeans.org mailing list.
netbeans.org/kb/docs/php/quickstart.html?print=yes
4/4