Book Image

PHPEclipse: A User Guide

Book Image

PHPEclipse: A User Guide

Overview of this book

The fusion of Eclipse, the leading open source development environment, and PHP is an exciting prospect for web developers. This book makes sure that you are up and running as quickly as possible, ready to take full advantage of PHPEclipse's tuned PHP development tools, without requiring any prior knowledge of Eclipse. You will begin with installing and configuring PHPEclipse, before moving onto a tour of the Eclipse environment, familiarizing you with its main components. As a plug-in to Eclipse, PHPEclipse is able to harness the platform to provide a rich and powerful development experience. For helping you improve the efficiency of your PHP coding, the book details the powerful editing features of PHPEclipse, and shows you how to use it to better organize your application code. You will see how PHPEclipse helps you throughout the development lifecycle, and learn how to use PHPEclipse's debugger to troubleshoot and step through your PHP code as it executes. The book rounds off with coverage of accessing databases and managing source code from within the. For the final step for your application, you will learn how to deploy your site to a production server."
Table of Contents (12 chapters)
11
Index

Creating a Project

Each application in Eclipse is organized in a project. All the files needed by the application to run are under the project. In a typical PHP web application, this would include PHP files, HTML templates, images, JavaScript files, and CSS stylesheets.

To create a new project, go to the main menu and click on File | New | Project... This will invoke the New Project wizard.

Creating a Project

The first screen of this wizard allows you to select the type of application to create. All but one of these application types are available in the standard Eclipse SDK. The lone exception is the PHP Project, which is available courtesy of PHPEclipse. Since we’re creating a PHP web application, click on PHP Project and then the Next button.

Creating a Project

This screen will require us to give a name to the application. The second part asks us if we would like to store the files in the default workspace. If the Use default checkbox is checked, Eclipse will automatically create a directory of the same name under...