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 XDebug on Ubuntu


From the console, run the following commands:

  1. 1. Install XDebug using the following command:

    sudo apt-get install php5-xdebug
    
    
  2. 2. Update xdebug.ini using the gedit (in-built) editor.

    sudo gedit /etc/php5/apache2/conf.d/xdebug.ini
    
    
  3. 3. Change xdebug.ini so that it looks as follows:

    zend_extension=/usr/lib/php5/20090626+lfs/xdebug.so
    xdebug.remote_enable=1
    xdebug.remote_handler=dbgp
    xdebug.remote_mode=req
    xdebug.remote_host=127.0.0.1
    xdebug.remote_port=9000
    
    

    Note that the first line of these configurations may be available inside xdebug.ini, and you may have to add the remaining lines.

  4. 4. Restart Apache.

    sudo service apache2 restart
    
    
  5. 5. Refresh the phpinfo() page, and find the latest XDebug installed with the version number.

What just happened?

We just enabled XDebug for our LAMP in Ubuntu and also verified the extension loaded with configurations. Note that such general steps to enable XDebug can be followed to enable other built-in extensions...