You are here: User Guide > Tasks > Working with Remote Server Support > Creating a New PHP Project with Remote Server Support

Creating a New PHP Project with Remote Server Support

This procedure describes how to create a new PHP remote project. A PHP remote project allows you to develop your project locally, with the option of remote testing and integration.

Important Note:

Creating a new PHP Remote Project can only be carried out if the project already exists on the remote server. To create a new project that does not exist on the remote server yet, create a PHP project and then enable it as a PHP Remote Project.

 

 

Instructions on how to complete a procedure

To create a new PHP remote project:

  1. Go to File | New | Other | PHP | PHP Project from Remote Server
    - Or - In the PHP Explorer view, right-click and select New | Other | PHP | PHP Project from Remote Server.
    The New PHP Project dialog opens.

  1. Enter the following information:

  • Project name - The required project name.

  • 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/DefaultWorkspace8 when you first launched Zend Studio.

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

  • PHP Version - Select whether to:

    • Use default PHP settings - Uses the default PHP Interpreter settings. For more information on PHP Interpreter and PHP version compatibility see Execution Environments Preferences.

    • Use project specific settings - Select the PHP version to be used for the project. See PHP Version Support for more information.

  • 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' check-box for JavaScript functionality (e.g. JavaScript Content Assist options) to be available to the project. See Enabling JavaScript Support in PHP Projects in PHP Projects for more information.

  1. Click Next.
    The Remote Configuration dialog opens.

  1. Select a Remote Connection from the drop down menu.
    If you do not have an existing Remote Connection Profile you can configure one by clicking Manage. For more information see Working with Remote Connection Profiles.
    The Project Directory is configured automatically based on your project name.

  2. Make sure the Project URL is correct and click Next.
    The Data Download Selection dialog opens.

  1. Expand the Project Directory to see all the folders within it that will also be transferred.

  2. Select the folders you want to download from the remote server by selecting the check-box next to the folder name.

  3. Click on a selected folder to view the files included in the folder.
    The individual files can also be selected/unselected to download from the remote server. By default, all files within a folder are selected.
    On this page you can also:

  • Filter Types - Opens the Inclusion and Exclusion Patterns dialog. For more information see Working with Inclusion and Exclusion Patterns.

  • Select All - Selects all the folders and files.

  • Deselect All - Deselects all the folders and files.

  1. Click Finish.
     The selected files are downloaded and the new PHP Remote Project with Remote Server Support is created.

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

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

 

All tasks you perform while working with Remote Server Support will appear in the Console view. Checking the Console view is the most efficient way to ensure that the action has been completed as you have requested. It will also show any problems that occurred during the task.

 

 

Related Links:
Enabling/Disabling a PHP Project as a Remote Project

Uploading Folders/Files to a Remote Server

Downloading Folders/Files from a Remote Server

Working with Inclusion/Exclusion Patterns

Working with Remote Connection Profiles

Remote Server Support Properties

 

 

©1999-2012 Zend Technologies LTD. All rights reserved.