Creating a New PHP File

Use the New PHP File Wizard to create a PHP file in the current project.

Creating a New File

  1. Click the drop down menu on the create New icon [] and select PHP File.

... or click File > New PHP File. The New PHP File  dialog will open.

  1. By default, the file will be located in the project's source folder. If required, use the Browse button to save it to another location. It will be saved relative to the current project.

  2. Enter the file name in the File Name field. Click Next. The Select PHP Template dialog will appear.

  1. Select the PHP template to use. Use the scroll bar at the right (not shown) to choose a template from the list (or deselect the "Use PHP Template" checkbox if you are not using a template).

PHP File Options and Menu Items

The PHP File Options and Menu Items currently available are:

  • Open

Opens the file with the default editor.

  • Open With

Selects the default editor

  • Copy

Copies the entire file to the clipboard.

  • Paste

Pastes the file to a specified location.

  • Delete

Deletes the file from the project.

  • Source

Formats File ****

  • Refactor

Enables you to Rename/Move the file. Does not fix or resolve dependencies.

  • Import

Selects an import source and opens an appropriate wizard to import material from the selected source.

  • Export

Selects an export destination and opens an appropriate wizard to export material to it.

  • Refresh

If you modify the file with an external editor, Refresh will perform any necessary build or update operations to process the changes that you made.

  • Run As

Runs on the Server or as a PHP executable.

  • Debug As

Debugs on the Server or as a PHP executable.

  • Team

Apply Ptch***

  • Compare With

Local History or with CVS version.

  • Replace With

Previous from Local History or from the CVS.

  • Source

Add PHPDoc

  • Properties

Opens the Properties Info dialog.