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

Notes
Tuesday May 13, 2003

PHPObject does not use XML

This is a note to clarify on a possible misconception. Please note that the message transport that PHPObject uses is the string format used by PHP native functions 'serialize()' and 'unserialize()'. The XML/WDDX format is not used. This allows us to transfer structured data to and fro the server without the XML parsing overhead that you experience with XML/WDDX. The parsing is replaced by PHP's native serialize/unserialize functions and the SerializerClass in Flash. The format used by PHPObject is less verbose than XML (and therefore the message size is smaller). Users are welcomed to do their own benchmarks and post their comments here.

Although an XML() object is used in the PHPObject library, unlike normal XML() object usage in Flash, you may notice that in our case, the XML() object does not transfer an XML file to the server.

You may also like to read PHPObject does not use AMF.

The SerializerClass was originally written by Sephiroth. The version included with PHPObject has been modified.

Posted by sunny at May 13, 2003 05:20 PM

 

Comments

What type of performance should one expect? I am trying to read 1000 rows from a small mysql table. This takes many minutes - yes, minutes. Clearly something is wrong, I think. The PHP page by itself returns the 1000 rows to a web page almost instantly. This is with everything running on the same machine. Even trying to fetch 100 rows (of 4 numbers in each row) takes 6 seconds from the time the PHPObject member function is called until the time the onResult object executes. Any ideas?

Posted by: Jim at June 26, 2003 10:00 AM

 


Zones



Forums