Configuring the PHP Interpreter

The PHP Interpreter enables you to work with different versions of PHP.

  1. In order to configure the PHP version used by the Eclipse PDT select Window | Preferences | PHP | PHP Interpreter. The Preferences dialog will open.

  2. Select the PHP Version to use.

  3. In order to use ASP tags as PHP tags, place a check mark in the "Use ASP tags.." check-box. Code inside ASP tags
    (i.e., <% %>) will be interperted as PHP code.

  4. Click Apply/OK to save and exit to the IDE.

  1. In order to use a different PHP Interpreter for a specific project, select the link labelled "Configure Project Specific Settings".

  2. Select the specific project from the list.

  3. Select the PHP version to use for that specific project.

Changing PHP version for Existing Project

If you change the interpreter used for an existing project a Confirm Project Rebuild dialog will appear. There are three options:

  • Yes

The project will be rebuilt immediately; error parsing will be performed according to the PHP version chosen.

  • No

The project will be rebuilt and error parsing performed according to the PHP version chosen after Eclipse is restarted.

  • Cancel

No changes will be made to the interpreter.