如何在 WAMP 下允许 PHP 的无限最大执行时间?

How to allow infinite maximum execution time for PHP under WAMP?

我有一个脚本,旨在处理无休止的任务。我想让它永远 运行 ,但是当达到 30 秒的最大执行超时时它会停止。我可以设置

max_execution_time = 3000

或类似的东西,但无论我做什么限制,都将是有限的限制。我怎样才能确保我的脚本 运行 无穷大?

你可以设置为0.根据:

The maximum execution time, in seconds. If set to zero, no time limit is imposed