Home >php教程 >php手册 >Fatal error: Maximum execution time of 30 错误解决办法

Fatal error: Maximum execution time of 30 错误解决办法

WBOY
WBOYOriginal
2016-06-13 09:57:151850browse

在程序开发中出现Fatal error: Maximum execution time of 30错误,是指你的程序执行时间超了30秒,但为什么是30秒页不是50,10,20秒呢,这个30是php默认的脚本运行时间了,如果大家要修改很简单,下面我来看看解决些问题的办法。

错误提示

php 出现 Fatal error: Maximum execution time of 30 seconds exceeded in D:xxuserlogin.class.php on line 10的解决办法:


修改php.ini:
max_execution_time = 300 时间,然后重起服务iis

或者在程序写

set_time_limit(时间); //0为无限制.

max_execution_time = 30; Maximum execution time of each script, in seconds
把它设置成需要的值就可以了。如果设置成0的话,就是永不过期。


phpmyadmin出现Fatal error: Maximum execution time of 300

具体位置可能不一样。我的在 mylocalhostphpMyAdminlibraries下

找到:$cfg['ExecTimeLimit'] = 300;

改成 $cfg['ExecTimeLimit'] = 3000;

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn