Running PHP Scripts Locally
This procedure describes how to run a PHP Script from your workspace
using Zend Studio's
To locally run a PHP Script:
Click the arrow
next to the Run button
on the toolbar and select Run Configurations -or- go to Run | Run Configurations.
A Run dialog will open.
PHP Script option to create a new run configuration.
Enter a name for
the new configuration.
from the following options:
default PHP - Select to use the default PHP and execution
environment defined in the Execution Environments
environment - Select the execution environment you would like
to use for your debug configuration from the dropdown list.
to change the settings in the Execution Environments
PHP - Select to use another PHP which can be selected from
the Installed PHP's list.
your PHP file in the "PHP File" text field, or click
and select your file.
the 'Display debug information when running' checkbox will
cause debug views to be displayed.
necessary, you can add arguments in the PHP Script Arguments
tab to simulate command line inputs.
Apply and then Run.
script will be run and displayed in a browser.
If the file contains 'include' or 'require' calls to
files which are not contained within the project, you must add
them to the project's Include Path in order to simulate your production