致命错误:从网站上执行每日运行时,超过30秒的最大执行时间 [英] Fatal error: Maximum execution time of 30 seconds exceeded when i execute daily run from my website
本文介绍了致命错误:从网站上执行每日运行时,超过30秒的最大执行时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在从网站供应商处使用phpMyAdmin.
I am using phpMyAdmin from a website vendor.
似乎我无法编辑php.ini设置页面. 所以在哪里设置ini_set('max_execution_time',300); ?在我的PHP编码页面中?或任何设置页面?
It seems that i can not edit php.ini settings page. so where to set ini_set('max_execution_time', 300); ? In my Php coding page ? or any settings page ?
推荐答案
如果您无法编辑php.ini配置,则可以在PHP页面顶部的顶部设置:
If you cannot edit php.ini configuration, then you can set following at top of your PHP page:
ini_set('max_execution_time', 300); //300 seconds = 5 minutes
//OR
set_time_limit(300); //If set to zero, no time limit is imposed.
注意:set_time_limit():当PHP以安全模式运行时,此功能无效.
Note: set_time_limit(): This function has no effect when PHP is running in safe mode.
这篇关于致命错误:从网站上执行每日运行时,超过30秒的最大执行时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文