View Full Version : I have a problem with flex+amfphp

03-08-2009, 10:45 AM
I used amfphp to connect Mysql and return the data in flex. Everything ok, but an error occur when I try to return a 100,000 records from Mysql:
[FaultEvent fault=[RPC Fault faultString="Channel disconnected"
faultDetail="Channel disconnected before an acknowledgement was received"]
type="fault" bubbles=false cancelable=true eventPhase=2
But when I added "LIMIT 0,30000" in the Mysql_query statement and its work fine again.

How do I can solve this problem?

03-08-2009, 10:59 AM
A guess... I don't think that AMFPHP may tell the server to drop the connection... so, it seems like your server is dropping it because the script executes for to long... But even if this is a broblem, I really don't know how to fix it. You'd probably have to change the time server waits for script to respond in the server configuration settings...

03-08-2009, 03:22 PM
I found out the cause of my problem, it just because the memory limit of PHP. I've increased the limit and it work fine now. Thanks wvxwv for your help!