Fatal error: Maximum execution time of 30 seconds exceeded in
2012-04-14 12:41
615 查看
--方法一------------------------------------------------------------
Fatal error: Maximum execution time of 30 seconds exceeded in
有时在运行大型网站或百万级的数据时优化得不好会出来如Fatal error: Maximum execution time of 30 seconds exceeded in错误提供了了。那么这是什么原因了呢,从英语意思我们看得出是超过的脚本的最大限制的运行时间了,php 系统默认是30秒哦,如果超过就会出现如下提示错误哦。
下面我们来看看如何解决运行时间过长的方法吧。
在php自带了一个set_time_limit($secon)函数
$cecon是一个以秒为单位的的int型数值
如
set_time_limit(30);
//意思就是过了30秒如何本程序执行完,就会出来错误提供了。如果想让页面永远不过期的话就设置参数为0就行了。
set_time_limit(0);
--方法二------------------------------------------------------------
Fatal error: Maximum execution time of 30 seconds exceeded
出现这个错误如何解决去哪里可以设置最大执行时间
解决办法:
修改php.ini,
把max_execution_time = 30(默认值)的值进行修改,这里的单位是秒 ,你可以根据自己的需要更改其数值,然后重起服务
或者在程序写。
set_time_limit(时间) //0为无限制
Fatal error: Maximum execution time of 30 seconds exceeded in
有时在运行大型网站或百万级的数据时优化得不好会出来如Fatal error: Maximum execution time of 30 seconds exceeded in错误提供了了。那么这是什么原因了呢,从英语意思我们看得出是超过的脚本的最大限制的运行时间了,php 系统默认是30秒哦,如果超过就会出现如下提示错误哦。
下面我们来看看如何解决运行时间过长的方法吧。
在php自带了一个set_time_limit($secon)函数
$cecon是一个以秒为单位的的int型数值
如
set_time_limit(30);
//意思就是过了30秒如何本程序执行完,就会出来错误提供了。如果想让页面永远不过期的话就设置参数为0就行了。
set_time_limit(0);
--方法二------------------------------------------------------------
Fatal error: Maximum execution time of 30 seconds exceeded
出现这个错误如何解决去哪里可以设置最大执行时间
解决办法:
修改php.ini,
把max_execution_time = 30(默认值)的值进行修改,这里的单位是秒 ,你可以根据自己的需要更改其数值,然后重起服务
或者在程序写。
set_time_limit(时间) //0为无限制
相关文章推荐
- Fatal error: Maximum execution time of 30 seconds exceeded in
- 解决PHP程序运行时:Fatal error: Maximum execution time of 30 seconds exceeded in的错误提示
- 解决PHP程序运行时:Fatal error: Maximum execution time of 30 seconds exceeded in的错误提示
- Fatal error: Maximum execution time of 30 seconds exceeded in
- php Fatal error: Maximum execution time of 30 seconds exceeded in 问题的解决方案
- Fatal error: Maximum execution time of 30 seconds exceeded in
- Fatal error: Maximum execution time of 60 seconds exceeded in *.php on line...
- 处理PHP mysql_query执行超时 【Fatal error: Maximum execution time of 300 seconds exceeded in……】
- DedeCMS提示Maximum execution time of 30 seconds exceeded in解决办法
- DEDE 织梦cms出现Fatal error: Maximum execution time of 30 seconds exceeded in解决办法
- Fatal error: Maximum execution time of 30 seconds exceeded in
- 解决Fatal error: Maximum execution time of 30 seconds exceeded in...的问题
- 安装 Fatal error: Maximum execution time of 30 seconds exceeded in …/magento/lib/Varien/Db/Adapter/Pdo/Mysql.php on line 230
- Fatal error: Maximum execution time of 30 seconds exceeded in
- 现Fatal error: Maximum execution time of 30 seconds exceeded in解决办法
- Fatal error: Maximum execution time of 30 seconds exceeded in
- Drupal错误:drupal Maximum execution time of 30 seconds exceeded database in解决方法
- 解决drupal的模块状态过多会导致启用模块时候出现一个类似错误Maximum execution time of 30 seconds exceeded in xxxxxxxxxxx
- [PHP]Maximum execution time of 30 seconds exceeded
- Maximum execution time of 0 seconds exceeded in