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 XAMPP in Windows


The following steps will download and install the XAMPP package:

  1. 1. We will download the installer for the latest XAMPP package from: http://www.apachefriends.org/en/xampp-windows.html.

  2. 2. After completing the download, run the .exe file to proceed with the installation. More installation details can be found at: http://www.apachefriends.org/en/xampp-windows.html.

  3. 3. You will be given a choice to install the Apache server and the MySQL database server as services, so you don't need to start them manually from the XAMPP Control Panel. Again, you will have the option to configure those services, such as start/stop, run as service, and uninstall from the XAMPP control panel later.

  4. 4. After completing the installation process successfully, you will be able to proceed with further steps. Open the XAMPP control panel from your operating system's Start | Programs | XAMPP.

    Svc checkboxes indicate that the module was installed as a Windows service, and hence will start with the Windows startup, or you can check them to be running as a service. If you ever need to restart your Apache web server, use the Stop/Start button besides Status of Apache.

  5. 5. Now, check your XAMPP installation. Visit the URL http://localhost from your web browser; the XAMPP welcome page looks similar to the following screenshot:

  6. 6. From the left, click phpinfo() to check the PHP release and the installed components that you have configured:

  7. 7. Click on the Status menu under the Welcome menu to check the installed tools status; the activated green status beside corresponding columns means that you are running Apache, MySQL, and PHP successfully:

What just happened?

We have successfully installed and run the XAMPP package on our system. We have the XAMPP control panel in order to control the installed services and we also have a web interface to manage MySQL databases.

Have a go hero — securing your XAMPP installation

XAMPP is not meant for production use, but only for developers in a development environment. XAMPP is configured to be as open as possible, and it allows the web developers to fetch anything they want. For development environments, this is great. But, in a production environment, it could be fatal. So, you need to secure your XAMPP installation with the help of the A matter of security section, at http://www.apachefriends.org/en/xampp-windows.html.

Note

To display errors in the development environment, update the loaded php.ini file to set display_errors = On, and do the reverse display_errors = Off for the production environment.