简体   繁体   中英

Bypass PHP timeouts

How is it possible, to relieably bypass any timeouts imposed by a server or browser? On many managed hosting servers even set_time_limit(x) and ini_set('max_execution_time', x) are overwritten and limited to usually a few minutes.

Splitting the workload between multiple files and redirecting to the next one would be one possibility, however Google Chorme for example aborts after 20 redirects.

Are there any other ways to prevent a premature exit of the script?

I know StackOverflow doesn't like these kind of questions very much, but there aren't any comparable help websites that do.

Thank you very much

Run your PHP script through AJAX iterations via setInterval() . Adjust your PHP script to run manageable batches for each iteration.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM