You are here: User Guide > Tasks > Creating PHP Files > Opening an External File

Opening an External File

These procedures describe how to open external files in Zend Studio.

External files can be opened in Zend Studio in three ways:

Once external files have been opened in Zend Studio, you can perform operations such as running, debugging and profiling on them.

Opening a File Using Drag and Drop

 

 

Instructions on how to complete a procedure

To open a file by dragging-and-dropping:

  1. Find your file in your external file system.

  2. Have both Zend Studio and your file system explorer open and visible on your desktop.

  3. Drag and drop the file into the editor space in Zend Studio.

The file will be displayed in an editor and will be available for operations such as debugging and profiling .

Opening a File by Double Clicking

 

 

Instructions on how to complete a procedure

To open a file by double-clicking:

  1. If the file type you are trying to open was associated with Zend Studio during installation, simply double-clicking it in your external file system will cause it to be opened in Zend Studio.

  2. If the file type was not associated with Zend Studio you can:

  • Right-click the file and select Open With | Choose Program | Zend Studio.

  • -Or- Add the file type to the list of file types which will automatically be opened in Zend Studio by doing the following:

    1. From Zend Studio's Menu Bar, go to Window | Preferences | General | Content Types.
      The Content Types dialog will be displayed.

    2. Select Text | PHP Content Type from the list.
      A list of file types associated with Zend Studio will be displayed.

    1. Click Add to add your file's type to the list,

    2. Enter the file type (e.g. .php) and click OK.

    3. The file type will be added to the list.

    4. Open your Windows Explorer.

    5. Go to Tools | Folder Options | File Types.

    6. From the File Types list, select PHP File.

    7. In the Opens with category click Change, browse to your Zend Studio .exe location and click OK.

    8. Click Apply.

You can now double-click the file on your external file system to open it in Zend Studio.

The file will be displayed in an editor.

Opening a File Using the Open Function

 

 

Instructions on how to complete a procedure

To open a file using Zend Studio's file open function:

  1. In Zend Studio, go to File | Open File.

  2. Browse for your file in your file system.

  3. Select the required file and click Open.

The file will be displayed in an editor.

 

 

Related Links:
Easy File Creation

Creating a PHP File Within a Project

Creating a PHP File Outside of a Project

 

 

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