致命错误:超过30秒的最长执行时间 [英] Fatal error: Maximum execution time of 30 seconds exceeded
问题描述
我是新来的PHP。
当我试图连接到CREA我遇到(加拿大房地产)数据库中的错误
When I'm trying to connect to crea(Canada realestate) database I encountered a error
致命错误:用C超过30秒的最长执行时间:\\ XAMPP \\ htdocs中\\ CR \\在线1465 PHRets_CREA.php
Fatal error: Maximum execution time of 30 seconds exceeded in C:\xampp\htdocs\cr\PHRets_CREA.php on line 1465
我再次执行code,那么它显示
again I executed the code then it is showing
致命错误:用C超过30秒的最长执行时间:\\ XAMPP \\ htdocs中\\ CR \\在线1408 PHRets_CREA.php
Fatal error: Maximum execution time of 30 seconds exceeded in C:\xampp\htdocs\cr\PHRets_CREA.php on line 1408
然后,我改变了以下线在php.ini并重新启动我的服务器
Then I changed the following line in php.ini and restarted my server
max_execution_time=300
这一次再次播种不同的行号
This time it again sown different line number
致命错误:用C超过300秒最长执行时间:\\ XAMPP \\ htdocs中\\ CR \\在线1489 PHRets_CREA.php
Fatal error: Maximum execution time of 300 seconds exceeded in C:\xampp\htdocs\cr\PHRets_CREA.php on line 1489
如何克服这个问题?
下面的完整code是 http://crea.ca/data-distribution-设备的文档
Here the complete code is http://crea.ca/data-distribution-facility-documentation
推荐答案
看来你的脚本占用太多的时间来执行,它正在已逾时。
It seems your script is taking too much time to execute and it is being timedout.
编辑php.ini和的max_execution_time的值更改为1000,并重新启动Web服务器。
Edit your php.ini and change the value of max_execution_time to 1000 and restart your web server.
您也可以尝试增加memory_limit的。
You can also try to increase your memory_limit.
这篇关于致命错误:超过30秒的最长执行时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!