I need help to figure out how to store persistent, static configuration data for my PHP script (using PHP4, Apache 2 on Linux).
I have a PHP script that could be run several times on the same webpage and in general will be called a lot on the complex website. My PHP script needs some config params that are static and doent' depend on the session. Basically they are the same while Apache is running.
I'm wondering is there a way to load them once using PHP module and access them from script? I know that I could use <auto_prepend> directive to always load a certain php script before any user script but it will take some time to load my config data. I also thought about storing my data in a Session object but it isn't useful for me because of load balancing my user will most likely go to a different webserver next time (and so different php module).
Is there a way to load all my data once into some global storage? Maybe I could refer to my ini file in php.ini? Or maybe I could tell Apache to execute my script at the startup and save my data somewhere?
Thanks in advance,
Jane