Hotline:15911225507
Long Xiao
Login
Home-All Questions-PHP-Main Content

如何为 PHP 脚本设置无限执行时间?

枫叶枫叶
PHP
3 years ago
0
0
2.26K

在脚本开始处添加 set_time_limit (0) 设置为无限执行时间,以避免 PHP 错误 “超过最大执行时间”。也可以在 php.ini 文件中指定它。

枫叶

枫叶

Lv1
This guy is so lazy, he won't even write a few words!
From: Course-PHP 教程, lesson-PHP 简介, Product-民族风新款手工盘扣冬装中式棉麻复古女士双层外套铜钱衣, Product-民族風新款手工盤扣冬裝中式棉麻復古女士雙層外套銅錢衣, Product-New Ethnic Style Handmade Button Winter Chinese Cotton Linen Vintage Women’s Double-Layer Coat with Copper Coin Buttons
512
Loading...
Share:
Long Xiao
No answers yet, be the first?
我要回答
Accepted answer rewards 100 points
Long Xiao
Please login first