设置PHP脚本执行超时的时间
单位时间为秒,默认php.ini 中的 max_execution_time = 30 ; Maximum execution time of each script, in seconds。
2、通过PHP的ini_set()函数设置
ini_set("max_execution_time",1800);
3、通过set_time_limit()函数设置
set_time_limit(1800);
2和3 放到PHP文件开头