这种方式修改后需要重启服务,一般不建议采用这种方法。
ini_set("max_execution_time",1800);
设置语句必须是php文件的第一行。
使用PHP的set_time_limit()函数设置,设置方法:
set_time_limit(1800);