Jump to content

How to prevent a script from timing out?


sh0wtym3

Recommended Posts

Hey all,

 

I've created a PHP script that runs a bunch of queries, the problem is that this can take 30+ minutes.

 

I get the error "The server connection has timed out" after a while, even though I've added the following:

set_time_limit(0);

 

Is there a way to keep "refreshing" the connection, or trick the connection/browser into not timing out?

Link to comment
https://forums.phpfreaks.com/topic/196371-how-to-prevent-a-script-from-timing-out/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.