Enabling/Disabling PHP Support

In this Topic Hide

Enabling PHP Support

Disabling PHP Support

 

Enabling PHP Support allows you to connect an existing PHP project to an existing or new Flex project. PHP Support allows your Flex Project to be aware of, and interact with, the PHP project you define.  This will create a Flex/PHP or Flex Mobile/PHP application. PHP Support must be enabled before you can introspect your PHP service.

Note:

If you have created a new Flex and PHP project or created a new Flex Mobile and PHP project, PHP Support is automatically enabled for the projects.

Enabling PHP Support

This procedure describes how to enable PHP Support, which associates your Flex project with a PHP project. Before enabling PHP Support you must have a Flex or Flex Mobile project and a PHP project in your workspace.
PHP Support can be enabled for a Flex or Flex Mobile project which was created separately from the PHP project.

 

 

Instructions on how to complete a procedure

To enable PHP Support:

  1. Select the Flex project you would like to enable and go to Project | Properties | Flex/PHP Support
    - Or - Select Properties | Flex/PHP Support from the Right Click Menu of your project directory.
    The Flex/PHP Support Properties page opens.  

enable_php_support.png

  1. Mark the ‘Enable PHP Support’ checkbox.
  2. Enter the following information:
  • Server options - Enter the following:
    • Web root - The web server's directory, for example “C:\Program Files\Zend\Apache2\htdocs”.
    • Root URL - The URL of your server. For example, your root URL can be “http://localhost”.
  • Output folder - Select an output folder for your compiled Flex/PHP application. The output folder is where the debug output is kept, which by default is stored in the “public” folder of your PHP project.
  • Gateway location - The location of your gateway file. The gateway file is located in your Web Root directory. For more information see The Gateway Script.
  • PHP Project Name - Select a PHP project from the dropdown menu to associate with your Flex project.
  1. Click Validate Configuration.
    If Flash Builder 4.5 for PHP cannot validate the configuration, review your web root and root URL and make sure they both exist on the machine.
  2. Click Apply and OK to apply and save the changes.
    PHP Support is enabled.

You can now begin working with your Flex/PHP application or disable PHP Support.

Disabling PHP Support

This procedure describes how to disable PHP Support. Disabling PHP Support will disassociate your Flex or Flex Mobile project with your PHP project. Once PHP Support is disabled, you will not be able to work with your Flex/PHP or Flex Mobile/PHP application, but will instead have two separate projects which have no knowledge of one another.

PHP Support can only be disabled if the Flex project was previously associated with a PHP project (either by enabling PHP Support or by creating a Flex/PHP or Flex Mobile/PHP project).

 

 

Instructions on how to complete a procedure

To disable PHP Support:

  1. Select the Flex project you would like to disable and go to Project | Properties | Flex/PHP Support
    - Or - Select Properties | Flex/PHP Support from the Right Click Menu of your project directory.
    The Flex/PHP Support Properties page opens.  

disable_php_support.png

  1. Unmark the ‘Enable PHP Support’ checkbox.
  1. Click Apply and OK to apply and save the changes.
    PHP Support is disabled.

You can now enable PHP Support.

 

 

Related Links

Related Links:
Creating Projects

Binding/PHP Introspection

PHP Support Properties