Hi Rafique, welcome to the Boards !
Yep, this i a size issue, but don't know exactly the limit (should test by yourself, could be interesting to know your results)
Here's some report to the amfphp list:
Flash talks to FlashComm, Flash talks to AMFPHP, FlashComm talks to
AMFPHP. No problem. AMFPHP replies to FlashComm, and sometimes
there"s a problem.
The AMF object queries MySQL, gets a recordset, packages it nicely
for FlashComm, and sends it back. The return object is an array with
two fields: a name and an array of records. FlashComm gets it, the
name is always there, but sometime the array of records is undefined.
Tracking this down more shows that this only happens when there is a
lot of data in the array of records. This is true for arrays of many
records, as well as for arrays of fewer, fatter records. I"m not
enough of either a PHP whiz nor a FlashComm whiz to find out exactly
how big--in bytes--the arrays are, but it definitely depends on the
total data size, as opposed to the number of records.
If I call the same PHP object from another PHP file and send its
results to a web page, everything works fine. The PHP is packaging
the data with no problem, but AMF is failing to send it along
properly to FlashComm. I haven"t tried calling the AMF object from a
Flash movie directly. That"s the next step, I suppose, but I thought
I"d mention this problem here, and see if anybody has run into it.
- Henry
Jorge