Creating PHP Projects

PHP projects are the containers within which all PHP and other application files should be created.

 

 

Instructions on how to complete a procedure

To create a new PHP project:

  1. From the menu bar, go to File | New | PHP Project
    -Or- In PHP Explorer view, right-click and select New | PHP Project.
    The New PHP Project wizard is displayed.

  1. Enter the following information:

  2. Project name - The required project name

  3. Contents - Create the new project in the default workspace direcotry or unmark the checkbox to Browse to a different location.

  4. Contents - Select whether to:

  • Create a new project in the workspace - Creates a new PHP project in the workspace directory.
    By default a workspace will have been created in @user.home/Zend/workspaces/DefaultWorkspace7 when you first launched PDT.

  • Create a project from existing source - Creates a PHP project pointing to files situatued outside of the workspace.
    Click Browse to select the required source content.

  • Create project on a local server - Creates the project on a local server. This option will only be available if a local Zend Server has been configured in the PHP Servers Preferences page.

  • PHP Version - Select whether to use the default PHP version settings or unmark the 'Enable project specific settings' chackbox to configure the PHP version used for this project.
     See PHP Interpreter Preferences for more information.

  • Use default PHP settings - Uses the default PHP Interpreter settings.

  • Use project specific settings - Select the PHP version to be used for the project and whether ASP tags are used as PHP tags.
    See PHP Version Support for more informaiton

  • Project Layout - Select whether to:

  • Use project as source folder - All resources within the project will be added to the Build Path by default.

  • Create separate folders for source files and public resources - Separate folders will be created in which you can place resources which should be included or excluded from the Build Path.
    See Configuring a Project's PHP Build Path for more information.
    The default setting for this option can be configured from the New Project Layout Preferences page.

  • JavaScript Support - Mark the 'Enable JavaScript support for this project' checkbox for JavaScript functionality (e.g. JavaScript Code Assist options) to be available to the project.
    See Enabling JavaScript Support in PHP Projects for more information.

  1. Click Next to configure the project's Include Path (this can also be done following the project creation).

  1. Click Next to configure the project's PHP Build Path (this can also be done following project creation).

  2. Click Finish.

The new PHP project will be created in your workspace and displayed in PHP Explorer View.

You can now start to develop your application by creating PHP Files or adding other resources to your project.

 

 

Related Links

Related Links:

Creating Projects and Files

Getting Started

Creating PHP Files
PHP Build Path

PHP Include Paths