Chapter 29. Integrating Flex Applications with PHP

IN THIS CHAPTER

  • Understanding PHP

  • Installing PHP with WampServer and MAMP

  • Creating a Flex project for use with PHP

  • Returning simple XML to Flex

  • Creating a Flex/PHP application with Flash Builder 4

  • Working with generated PHP services

  • Using RemoteObject and AMF with Flex and Zend AMF

PHP has become one of the most widely used application scripting frameworks on the Web. Originally standing for Personal Home Page, PHP has evolved into a high-performance application server technology that's used both to dynamically generate Web pages and to provide a middleware layer for rich client applications such as those built with Flex.

Tip

The term PHP is used to refer to both the server technology and the programming language used to create dynamic Web functionality.

In addition to its core feature set, PHP has extensibility features that enable developer s to create and add modules as needed. PEAR (PHP Extension and Application Repository), in the words of its creators, offers both a "structured library of open-source code for PHP users" and a "system for code distribution and package maintenance." It also encourages a standardized approach to formatting PHP code, including recommendations for indentation, identifier naming, and other issues that sometimes invite controversy between developers.

PHP is portable between operating systems. Binary distributions of PHP are available for these operating systems:

  • AS/400

  • Mac OS X

  • Novell NetWare

  • OS/2

  • RISC OS

  • SGI IRIX ...

Get Flash® Builder™ 4 and Flex® 4 Bible now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.