Running a Flex/PHP Application

This procedure describes how to run your Flex/PHP application, which is already located on the server. This allows you to run and test your application during development.

Before running your Flex/PHP application, you must  introspect your PHP service and develop your Flex and PHP projects. You must also have an existing database, with your application's content located on the server.

Running a Flex/PHP Application

 

 

Instructions on how to complete a procedure

To run a Flex/PHP application:

  1. To change the default web browser to work with while running, go to Windows | Preferences | General | Web Browser. For more information see Web Browser Preferences in the Workbench User Guide.
    The 'Use Internal Web Browser' option does not apply to running and debugging applications. Applications are always run and debugged in an external web browser.

  1. From the Right Click Menu of your Flex Project select Run As | Web (PHP) Application.
    The debug configuration is automatically configured according to your project settings.

Note:

If you have more than one configuration for Web (PHP) Application, select the configuration you would like to use from the Launch Configuration Selection dialog and click OK.

  1. The application opens in a browser.

See Managing Your Mobile (PHP) Run Configuration for information on editing options in the run configuration.

Managing Your Web (PHP) Run Configuration

 

 

Instructions on how to complete a procedure

To manage your Web (PHP) run configuration:

  1. Click the arrow next to the run button run_icon.png on the toolbar and select Run Configurations
    -Or- go to Run | Run Configurations.
    A Run Configurations dialog will open.

  2. Double-click the Web (PHP) option to create a new debug configuration.
    Open the Main tab.

web_run_config.png

  1. The dialog is made up of the following:
    • Name - Enter a name for the new configuration.
    • Project - The name of your Flex project. Click Browse to select from a list of an available list of projects.
    • Application file - Select the application file you would like to use from the dropdown list.
    • URL or path to launch - The URL to be debugged will have been automatically created based on the file name and your server address. If the URL does not point to your debug target's location, unmark the 'Use default' checkbox and modify the URL.
  1. Click Apply to save your changes. To run now click Run, or click Close to save your changes and run later.

See Running a Flex/PHP Application for information on running your application once the run configuration has been edited.

 

 

Related Links

Related Links:
Debugging a Flex/PHP Application

Running a Flex Mobile/PHP Application