Home > Backend Development > PHP Tutorial > 关于set_time_limit(0)的有关问题

关于set_time_limit(0)的有关问题

WBOY
Release: 2016-06-13 11:55:16
Original
1209 people have browsed it

关于set_time_limit(0)的问题?
请问在iis服务器下,php中的set_time_limit(0)为什么没有作用?
------解决方案--------------------
几个原因排查一下:
1. php是否运行在安全模式下,如果是的话,set_time_limit是无效的。

2. IIS服务器本身配置了超时,且优先级更高,即使你 php设置了不超时,由于服务器的超时机制,还是会做超时处理,因此在超时后会触发致命错误,这就是导致500错误的原因。
参考一下这篇文章:http://www.iisadmin.co.uk/?p=7

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template