Disable PHP script execution limit -


set_time_limit(0) reset counter 0, need call every 30 seconds or in order script continue running without breaking in error.

is there way disable time limit stuff, without having call function repeatedly?

setting limit 0 disables entirely. setting non-zero resets countdown value. e.g.

while(true) {    set_time_limit(30);    sleep(29); } 

will run (virtually) indefinitely, because limit keeps getting reset 30, 1 second before expire.


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

php - joomla get content in onBeforeCompileHead function -