Shoutbox

Stop connection time out on PHP script that takes a long time to execute? - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: Stop connection time out on PHP script that takes a long time to execute? (/showthread.php?tid=81077)

Stop connection time out on PHP script that takes a long time to execute? by Mike on 01-20-2008 at 08:51 AM

Hey,

I have a PHP script that usually takes a long time to execute (usually more than 1-2 minutes).
Since it takes that long, the browser displays a connection timed out error (I'm not talking about the php error "time limit exceeded". I have already taken care of that).
Is it possible to keep the connection alive so that it doesn't time out?


On a side note, I have put some echoes in the code to indicate the progress, but they are shown only when the script finishes executing, which kinda defeats the purpose. Is it possible to display them while the script is executing?


Thanks :)


RE: Stop connection time out on PHP script that takes a long time to execute? by -dt- on 01-20-2008 at 09:54 AM

use echo and flush