1.set_time_limit(0); 2.ini_set('max_execution_time', '180'); 转载于:https://my.oschina.net/wangwang110/blog/9565