You are here: User Guide > Tasks > Working with Remote Server Support > Enabling/Disabling a PHP Project as a Remote Project

Enabling/Disabling a PHP Project as a Remote Project

This procedure describes how to enable a local PHP project as a remote project by applying a Remote Connection Profile to it, and therefore associating it with a remote server. Working with remote projects allows you to develop your code in one environment, while in parallel executing it in a different environment.

Enabling/disabling a project is done through the Remote Server Support Properties.

 

Enabling a Project as a Remote Project

This procedure describes how to enable your local project as a remote project by associating it with a remote server. This allows you to transparently access your remote server and remote resources, providing an easy way to upload and download files from your remote server.

 

 

Instructions on how to complete a procedure

To enable a project as a remote project:

  1. Select the project you would like to enable and go to Project | Properties | Remote Server Support - Or - Select Properties | Remote Server Support from the Right Click Menu in your project directory.
    The Remote Project Properties page opens.

  1. Select the ‘Enable remote connection properties’ check-box to modify the current settings on the page.

  2. Select a remote connection from the Remote Connection drop down menu.
    You can manage the remote connection you have associated with your project by clicking Manage. If you do not have any remote connections already defined, you must add a Remote Connection Profile. See Working with Remote Connection Profiles for more information.

  3. Click OK to enable your project as a remote project.

  4. A message appears asking if you would like to upload all files in your project to the remote server. Click Yes to upload your project's files in the workspace to the remote server. To skip this step, click No and upload data from your workspace to the remote server when you would like to.

  5. If you click Yes the Remote Server Upload dialog opens.

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

  2. Select the folders you want to upload to the remote server by selecting the check-box next to the folder name.
    By default all folders are selected.

Note:

If you open the Right Click Menu from a specific folder/file within the project instead of the project name, only the folders/files contained within those resources will be selected by default.

  1. Click on a selected folder to view the included files.
    The individual files can also be selected/unselected to upload to 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. Defining exclusion/inclusion patterns allows you to filter which folders/files will be uploaded. 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 uploaded to the server.

To find out how to disable your project as a remote project see Disabling a Project as a Remote Project.

Now that you are working with a remote project, you can Download Folders/Files from the Remote Server and Upload Folders/Files to the Remote Server.

 

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.

Disabling a Project as a Remote Project

This procedure describes how to disable a project as a remote project. Once disabled, a project will no longer be associated with a remote server and will no longer allow you to transparently access your remote server and remote resources.

 

 

Instructions on how to complete a procedure

To disable a project as a remote project:

  1. Select the project you would like to disable and go to Project | Properties | Remote Project.  - Or - Select Properties | Remote Project from the Right Click Menu in your project directory.

  1. Deselect the ‘Enable remote connection properties’ check-box to disable the project as a remote project.
    Your project is no longer associated with a remote server.

To enable your project as a remote project see Enabling a Project as a Remote 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:
Creating a New PHP Project with Remote Server Support

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.