Is there a way in PHP to use \"out of session\" variables, which would not be loaded/unloaded at every connexion, like in a Java server ?
Please excuse me for the la
Another solution is to wrap your variable in a "persistent data" class that will automatically restore its data content every time the php script is run. Your class needs to to the following:
__destructor__constructorI prefer storing the file in JSON format so the content can be easily examined for debugging, but that is optional.
Be aware that some webservers will change the current working directory in the destructor, so you need to work with an absolute path.