What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Stop connection time out on PHP script that takes a long time to execute?

Stop connection time out on PHP script that takes a long time to execute?
Author: Message:
Mike
Elite Member
*****

Avatar
Meet the Spam Family!

Posts: 2795
Reputation: 48
32 / Male / Flag
Joined: Mar 2003
O.P. Stop connection time out on PHP script that takes a long time to execute?
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 :)
YouTube closed-captions ripper (also allows you to download videos!)
01-20-2008 08:51 AM
Profile E-Mail PM Web Find Quote Report
-dt-
Scripting Contest Winner
*****

Avatar
;o

Posts: 1819
Reputation: 74
36 / Male / Flag
Joined: Mar 2004
RE: Stop connection time out on PHP script that takes a long time to execute?
use echo and flush
[Image: dt2.0v2.png]      Happy Birthday, WDZ
01-20-2008 09:54 AM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On