且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

PHP 致命错误:超出最大执行时间

更新时间:2022-02-09 00:14:52

您已达到默认脚本执行超时.您可以尝试使用 set_time_limit(0) 禁用超时.但是,您可能正在网络服务器下运行脚本 - 那么网络服务器超时可以应用,这是无法避免的,并且由系统管理员配置.在这种情况下 - ***的办法是通过运行 shell 脚本(例如 cronjob)来执行大量插入.

You have reached the default script execution timeout. You could try use set_time_limit(0) to disable the timeout. But as probably you are running your script under webserver - then the webserver timeouts can apply, which cannot be avoided and are configured by system administrators. In this case - best thing would be to perform huge inserts by running a shell script (e.g. cronjob).