This page is no longer updated - please visit http://ghostwire.com Thank you!
 

« PHPObject »
An Opensource Alternative to Flash Remoting
Current Release
Readme
Notes
Journal
Archives

Overview

PHPObject is an opensource alternative to Flash Remoting for PHP developers. With PHPObject, you can call a method of a PHP class/library on your web server as if the class/library was defined in Flash itself. It takes care of your client-server connections and makes passing of variables (properties) between Flash MX and PHP easy, and thereby providing a convenient way to connect rich media clients with data and business logic residing on your server.

The library, together with a WebServicesConnectivityAddOn, also allows developers to easily consume Web services from within Flash MX.

PHPObject is released under the GNU LGPL License. This means you can use it for free, for personal and commercial projects. Please read my note on licensing.

Enjoy! :)

 

Features
  • When a PHPObject is created in Flash MX, it automatically gets its default properties from the remote object
  • Validate whether method exists on the remote object before connection
  • Allows only one server connection per object at a time to preserve data integrity (ie remote methods of the same object cannot be called simultaneously)
  • [new in v1.1] More than one remote method can be invoked sequentially per connection (rather than having to make a new connection for each method called)
  • [new in v1.2] Makes consuming SOAP-based web services easy
  • [new in v1.3] Protect your gateway from unauthorized use with a key
  • [new in v1.4] Allows movieclips to be set as PHPObjects
  • Event handlers (responders) such as onAbort, onInit, onError, and onResult
  • Responders can be defined for individual methods, eg. myFoo.doMethod_onResult = function(result){}
  • Uses PHP's native serialize() and unserialize() functions for performance

 

Limitations
  • Object must not have nested arrays/objects making references to themselves, another nested array/object, or the parent object. Otherwise, a "more than 256 recursive loop" error will occur. Read more.
  • By no fault of PHPObject, users of the Safari browser will be unable to browse sites made with the library due to a bug in the browser/plugin. Read more.

 

Download

The current public release is PHPObject v1.4.1 and you can download here. If you had downloaded v1.4 and are using PHP4.1 you do not need this patched version (this version fixed a bug in serializer that caused the library to fail when used in PHP4.2 and above).

* Please do not download and attempt to use PHPObject unless you understand object-oriented programming in PHP. This library is unsuitable for your use if you code procedurally.

* Please read through ALL the notes on this website. These notes answer most of the enquires I receive.

 

Donations

If you like PHPObject and what it can do for you, please consider showing your support for the project. Thank you.

 


Zones



Forums