Is it possible to change a script when it is running?

php change script while is running

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

  • 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.

Michael at Stack Overflow Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.