好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

Fatal error: Maximum execution time of 30 seconds

Fatal error: Maximum execution time of 30 seconds exceeded in

网站后台更新出现Fatal error: Maximum execution time of 30 seconds exceeded in错误原因是你页面执行时间太久了,而你的超时时间不够当前脚本运行时间导致的,我们只要在php中加以改进即可解决.

在服务器中找到php.ini这个文件

然后重起apache即可

如果没能修改php.ini文件我们可以在生成页面加下set_limit_time(0),代码如下:

<?  set_limit_time(0);  .....  ?> 

后面点是代码,set_limit_time(0)要写在页面最新面。

注意: 这个函数的运行需要你关闭安全模式,在php.ini中将safe_mode = Off 安全模式设置为Off,否则将会出现下面错误:

Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit in safe mode in

查看更多关于Fatal error: Maximum execution time of 30 seconds的详细内容...

  阅读:83次