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 PHPUnit via PEAR


In the following steps, we will upgrade PEAR and install PHPUnit via PEAR, for the corresponding environments:

  1. 1. Run the command prompt as an administrator, go to the PHP installation directory where the pear.bat file belongs (D:\xampp\php), and execute the following command:

    pear upgrade pear
    
    

    This upgrades the existing PEAR installation. In Ubuntu or Mac OS X system, run the following command:

    sudo pear upgrade pear
    
    

    In the case of MAMP, if you encounter the error sudo: pear: command not found, then refer to the section Configuring MAMP issues.

  2. 2. To install the latest PHPUnit, type the following two commands:

    pear config-set auto_discover 1
    pear install pear.phpunit.de/PHPUnit
    
    

    It discovers the download channels automatically and installs the latest PHPUnit along with the available packages.

  3. 3. To check the PHPUnit installation, run the following command:

    phpunit version
    
    

    You will see a command similar to the following:

    PHPUnit 3.6.10 by Sebastian...