Combining Flex with PHP and Open Source
Day 1. Session 1. David Zuckerman from Adobe discusses using PHP as a back-end for Flex data integration.
PEAR is a great PHP library that provides a set of functions that will convert query data to XML, as well as MDB2 (a database abstraction layer like JDBC). PHP5 has moved many of their libraries to native functions, making them much faster. PHP also has 2 AMF frameworks for using remote objects: AMFPHP and WebORB.
AMFPHP’s interface has changed for each release, and David has experienced a few bugs while using it.
WebORB has been very stable and supports both AMF0 and AMF3. Both options require describing the available functions for a class, whether via a “method table” function in the class or a separate XML configuration file. One last bit of sweetness for you: You can easily add PHP support to Flex Builder 2 since it’s based on Eclipse. You start your PHP project and add the Flex “Nature”.
Tags:
Flex 2 and .NET at Nate Said on 29 Nov 2006 at 6:35 pm
[…] Again, this was just a short summary - flip through the PDF of the presentation slides, and also check out the AMF resources. Everything I’ve read indicates AMF transmission of data is the way to go no matter the back-end. I’ve now seen AMF working with ColdFusion (7.0.2+), Java (with FDS), PHP, and now .NET. Tags: […]