background preloader

Php

Facebook Twitter

Php-flex-http-service - Project Hosting on Google Code. Flex and PHP: remoting with AMFPHP. Since I recently received some requests for a simple example on getting up to speed with Flex, PHP, and AMF, I decided to write a tutorial on this topic. I will show you how to do remote procedure calls from Flex to PHP classes using AMFPHP. Soon I will post an article on how to do RPC using the Zend Framework and ZendAMF. What is AMFPHP and why should you use remoting? If you already know these answers, you may want to skip to the next section. AMFPHP is a PHP open source library that knows how to serialize and deserialize the AMF protocol, and thus lets you expose PHP classes to Flex applications. As I said earlier, AMFPHP remoting uses AMF for serializing messages between the server and Flex client. Contacts ------------------------------- id primary key int name varchar(255) email varchar(255) When using remoting, you create an ActionScript class to model this data in the client and a PHP class to model the same data on the server.

Let’s look at a working example. <? Important! Create Your Project. In order to create your project, you must first download and extract Zend Framework. Install Zend Framework The easiest way to get Zend Framework along with a complete PHP stack is by installing » Zend Server. Zend Server has native installers for Mac OSX, Windows, Fedora Core, and Ubuntu, as well as a universal installation package compatible with most Linux distributions. After you have installed Zend Server, the Framework files may be found under on Mac OSX and Linux, and on Windows. The include_path will already be configured to include Zend Framework. Alternately, you can » Download the latest version of Zend Framework and extract the contents; make a note of where you have done so.

Optionally, you can add the path to the subdirectory of the archive to your 's include_path setting. That's it! Create Your Project Note: zf Command Line Tool In your Zend Framework installation is a subdirectory, containing the scripts and for Unix-based and Windows-based users, respectively. The Bootstrap <! Flash Builder 4 – Flex et PHP (Zend), le guide de configuration complet - Adobe Flex Tutorial - Tutoriaux Flex Builder, MXML, ActionScript, AS3. Debugging Flex and PHP.