mac xampp php代码修改不生效,PHP-无法在xampp中更改max_execution_time

我已经尝试了一切来改变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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值