php 超时 解决办法 (Maximum execution time of 30 seconds exceeded)这个问题?

1、 修改是APACHE设置,在PHP.INI中找到一个参数:

 

  1. max_execution_time

 

 将后面的值调大,然后重新启动APACHE服务(centos: service httpd restart),就OK了。

2、 在php网页中加入下面的代码:

 

  1. set_time_limit(0);//0表示不限时
posted @ 2016-06-08 00:28  麦田守望者~  阅读(1584)  评论(0)    收藏  举报