我已经尝试了一切来改变php爬虫脚本的max_execution_time,以便它可以运行无限的时间.
我已将php.ini文件设置max_execution_time更改为0或100000000,但没有任何更改
我也尝试使用ini_set(‘max_execution_time’,0)从php脚本本身设置它;
所有php脚本都抛出相同的错误致命错误:超过3000秒的最大执行时间,我可能缺少什么,如何确保没有最大执行时间限制?
ini_set('MAX_EXECUTION_TIME', -1);
error_reporting(E_ALL); // turn on all errors, warnings and notices for easier debugging
//ini_set('max_execution_time', 123456);
ini_set('max_input_time', -1);
ini_set('memory_limit', '512M');
set_time_limit(0);
date_default_timezone_set('Europe/London');
/*code which scrapes websites*/
?>
phpinfo()函数
max_execution_time 0 0
max_input_time -1 -1