Welcome, Guest. Please login or register.
Did you miss your activation email?
05/23/12, 12:46
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  Server side Scripting and Database Support
| |-+  Flash Remoting with AMF (Moderators: Flash-db, Musicman, Jorge Solis, papachan, nothingGrinder)
| | |-+  return object data size : FCS and AMF
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: return object data size : FCS and AMF  (Read 2276 times)
Rafique
Server what's that
*
Posts: 1



View Profile Email
« on: 08/30/04, 11:21 »

Hi Guys,
I  am facing this problem while working with FCS and AMF on a Linux box

this does not work (i am quering for all the recordset):
$get_mb=mysql_query("SELECT Username,Balance,isOnline,LastLoggedIp from users");

This works(i am quering for limited reords):
get_mb=mysql_query("SELECT Username,Balance,isOnline,LastLoggedIp from users limit 0,100");

again this works(here again the data is less)
$get_mb=mysql_query("SELECT Username from users");

Is there any size restriction to the return object

Both work perfectly fine if i make a call from Flash but does not work with Flash Communication Server

Also if i have AMF on an IIS server , FCS and MySql on a Linux box the above queries work perfectly fine and I am able to get the complete recordset in FCS


Thanks
Raf
Logged
Jorge Solis
Administrator
Systems Administrator
*****
Posts: 14600


View Profile
« Reply #1 on: 08/30/04, 12:12 »

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:

Quote

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
Logged

Benjamin
Server what's that
*
Posts: 5



View Profile Email
« Reply #2 on: 08/31/04, 02:36 »

well i have been into flash for a very long time now and i need to do things likeyou
so i decided that i was going to study on my own but then i got to a point that i got stucked
the problem i have is that i have installed php 5, mysql, apache on my machine and now i want that guest book stuff to work on my machine please what are the configurations that
i need to do so that the php will connect to mysql and send the recordset to flash?
 and actually my os is win 2000 pro and i want to use apache server just like you
i will be very greatfull if you can help me
thank you Master.
Benjamin student Wink
« Last Edit: 08/31/04, 02:39 by Benjamin » Logged
Jorge Solis
Administrator
Systems Administrator
*****
Posts: 14600


View Profile
« Reply #3 on: 08/31/04, 02:44 »

Post a new question, this is not related to this thread.

Jorge
Logged

Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
anything