set_time_limit — 设置脚本最大执行时间;php
bool set_time_limit ( int $seconds )code
$seconds
设置容许脚本运行的时间,单位为秒。若是超过了此设置,脚本返回一个致命的错误。默认值为30秒,或者是在php.ini的max_execution_time被定义的值,若是此值存在。it