When are infinite loops are useful in PHP?

后端 未结 12 926
日久生厌
日久生厌 2020-12-09 21:17

While reading through the great online PHP tutorials of Paul Hudson he said

Perhaps surprisingly, infinite loops can sometimes be h

12条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-09 22:07

    Paul Biggar has posted a make script for LaTeX projects which uses an infinite loop to run in the background and continually tries to rebuild the LaTeX sources.

    The only way to terminate the script is to kill it externally (e.g. using Ctrl+C).

    (Granted, not PHP (Bash, actually) but the same script could well be implemented in PHP instead.)

提交回复
热议问题