User Guide > Tasks > Creating PHP Files > Creating a PHP File Outside of a Project

Creating a PHP File Outside of a Project

Single PHP files can be created outside of a project quickly and easily for the purposes of writing short snippets of code which will not later need to be debugged or run and do not need to be associated with other files or projects.

Creating a New PHP File Not Associated with a Project

 

 

Instructions on how to complete a procedure

To create a new PHP file not associated with a project:

  1. From the Menu Bar, go to File | New | Other | PHP | Untitled PHP Document.
    -Or- click the new Easy PHP File icon on the toolbar .

  2. A new PHP file, by default called PHPDocument1, will open in the editor.

Once the file has been created, it can later be saved within a project.

Saving the File to a Project

 

 

Instructions on how to complete a procedure

To save the file to a project:

  1. Click save on the toolbar.
    A Save As dialog will open.

  2. Select the project with which you would like to associate with the file
    -Or- To create a new project:

  1. Click Create New Project.
    The New PHP Project dialog will be displayed.

  2. Enter the Project name and click Finish.
    The new project will be added to the list. Select it to save your file within your new project.

  3. Edit the file name.

  4. Click OK.

Your file will be saved within the selected project and will be available for running, debugging and profiling operations.

 

 

Related Links

Related Links:
Easy File Creation

Creating a PHP File Within a Project

Opening an External File

 

 

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