在程序开发中出现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下
立即学习“PHP免费学习笔记(深入)”;
找到:$cfg['ExecTimeLimit'] = 300;
改成 $cfg['ExecTimeLimit'] = 3000;
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号