Skip to content
Advertisement

php change script while is running

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.

Advertisement

Answer

While the script is running you can modify the file but it will not have any effect. The script is loaded once at execution-time.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement