Book Image

PHP Application Development with NetBeans: Beginner's Guide

By : M A Hossain Tonu
Book Image

PHP Application Development with NetBeans: Beginner's Guide

By: M A Hossain Tonu

Overview of this book

<p>NetBeans has many features that greatly simplify PHP development, and with its several features and great flexibility, PHP developers can become overwhelmed by the IDE's options. This book provides step-by-step instructions that show you how to take control of the environment and make use of these features to make your PHP application development more efficient and productive than ever before.<br /><br />"PHP Application Development with NetBeans: Beginner's Guide" leads you through the crucial parts of PHP programming and shows you how to use the features of NetBeans that will improve your PHP development experience, through clear and easy instructions.<br /><br />The book gets you started with the development environment and tools, and takes you through working on practical projects with a clear focus. With each chapter being mission-critical, the book is a perfect companion to boost your PHP coding productivity and gain experience with even complex projects.<br /><br />The book starts with setting up the PHP development environment and introduces exciting and useful IDE features. You'll learn how to build real life PHP projects such as Facebook like Status Updater and even User Registration, Login &amp; Logout application. Also the book will introduce you with some must know development tools such as debugging &amp; testing tools, source documenter tools, and versioning tools.<br /><br />Working with the NetBeans IDE for PHP development has its own advantages, and this book reassures the purpose. This book is full of illustrations, screenshots, and clear instructions to take your PHP development to a new level and even shows you time-saving tricks and other productivity enhancements.</p>
Table of Contents (16 chapters)
PHP Application Development with NetBeans Beginner's Guide
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface

Time for action — installing MAMP in Mac OS X


Follow the steps below to download and install MAMP in your Mac OS X:

  1. 1. Download the latest MAMP release from http://www.mamp.info/en/; download MAMP by clicking on the Download now button under MAMP package downloader:

  2. 2. As shown in the preceding screenshot, choose the MAMP download on the left-hand side of the screen.

  3. 3. Extract the downloaded file, and run the .dmg file. After accepting the "terms of use", you will see a screen similar to the following:

  4. 4. Drag the MAMP folder into the Applications folder; the MAMP installation is now complete on your Mac OS X.

  5. 5. Now, let's check our MAMP installation. Point your browser to http://localhost/MAMP/, and you will see the default MAMP landing page, as shown in the following screenshot:

    You can check phpinfo, phpMyAdmin, and so on, on the top bar at the Start page of MAMP.

  6. 6. From /Applications/MAMP/, double-click on MAMP.app to run the Apache, MySQL, PHP, and MAMP control panel. The MAMP control panel shows the server status, and lets you start/stop servers, as shown in the following screenshot:

  7. 7. Switch to PHP version 5.3 from the MAMP control panel at Preferences... | PHP Tab (it requires a server restart).

What just happened?

We have successfully downloaded and installed MAMP for our Mac OS X development environment. Also, we have tested the installation, and found that it is up and running perfectly. The MAMP landing page comes with a tabbed interface, with phpinfo, phpMyAdmin, SQLiteManager, and so on. You have the following program and libraries installed with your MAMP bundle:

  • Apache 2.0.63

  • MySQL 5.1.44

  • PHP 5.2.13 and 5.3.2

  • APC 3.1.3

  • eAccelerator 0.9.6

  • XCache 1.2.2 and 1.3.0

  • phpMyAdmin 3.2.5

  • Zend Optimizer 3.3.9

  • SQLiteManager 1.2.4

  • Freetype 2.3.9

  • t1lib 5.1.2

  • curl 7.20.0

  • jpeg 8

  • libpng-1.2.42

  • gd 2.0.34

  • libxml 2.7.6

  • libxslt 1.1.26

  • gettext 0.17

  • libidn 1.15

  • iconv 1.13

  • mcrypt 2.6.8

  • YAZ 4.0.1 and PHP/YAZ 1.0.14

So far, we have installed the latest NetBeans IDE, and set up our platform-precise development environment with up-to-date Apache, MySQL, and PHP. Now, our recently completed development environment is well-crafted enough to start building projects. We will head for PHP project creation and maintenance with the help of IDE. Such a synergetic approach between the developer and the IDE can really improve productivity.

Have a go hero — securing your MAMP installation

As we have learned, MAMP is not meant for production use, but only for developers in a development environment. Secure your MAMP installation with the help of the MAMP forum at http://forum.mamp.info/viewtopic.php?t=365. You may need to set the MySQL password, phpMyAdmin password, secure the MAMP landing page, and so on.