一千萬個為什麽

搜索

php正在運行時更改腳本

I have a PHP script that I'm running from command line (e.g PHP test.php &). I would like to know if the execution is "flushed" automatically when I change some values in the script (using vim) while the script is running or if the script is somehow "cached" in the PHP engine when it starts running.

最佳答案

在腳本運行時,您可以修改文件,但不會產生任何影響。腳本在執行時加載一次。

轉載註明原文: php正在運行時更改腳本