I have a script but my server on shared hosting times out after 5 minutes, is there a way to continue script after time-out? The script updates my MySQL database. Do run script for some time and stop then continue automatically but not from the start?
Thanks
There is no way to automatically continue script after terminated execution. On shared hosting environments it is common to kill scripts after some time, you should check how long it is allowed to run on your hosting's company wiki / faq. If you want to simulate continuing script execution, you must code it yourself, detecting what has been done and processing only the rest of data.
即使在共享主机上,您也应该可以使用set_time_limit
( PHP docs )
set_time_limit(0); // infinite
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.