in reply to keeping something in memory after the end of script
There is no way to keep data "in memory" without also having a process attached to it.
You will either have to stick the data into a file or into some kind of database.
If you want to be notified of file changes, keep a process running and look at the inotify modules.
|
|---|