超过30秒的最长执行时间 [英] Maximum execution time of 30 seconds exceeded

查看:176
本文介绍了超过30秒的最长执行时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请帮助!我已经从数据库中检索房源在我的系统。但它有一千上市,直到这个错误出现:

Help please! I've been retrieving listing in my system from database. But it has thousand listing until this error appear:

致命错误:最长30秒的执行时间超过了

Fatal error: Maximum execution time of 30 seconds exceeded

这code是我的htaccess

This code is from my htaccess

php_value max_execution_time 3000
php_value upload_max_filesize 512M
php_value post_max_size 512M
php_value memory_limit 256M
php_value set_time_limit 0

我该如何解决?我使用PHP和MySQL。

How can I resolve this? I'm using PHP and MYSQL.

推荐答案

您可以扩展最大执行时间是这样的:

you could extend the maximum execution time like this:

ini_set('max_execution_time', 0); 

其他编辑您的htaccess

else edit your htaccess

php_value max_execution_time 0

这篇关于超过30秒的最长执行时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆