PHP > Setting server-wide variables?
Posted on 2009-04-15
I have a PHP web page that Internet users access. I have a second PHP script running as a system script under the root user. I need to be able to communicate small bits of information from the Apache script to the system script so my options are:
1. Write the info to a file on disk.
2. Write the info to MySQL
3. Write the info to memory
Options 1 and 2 are bad because they take a lot of overhead in spinning disks, etc.
So is there a simple way to do Option #3? Like can I write the info to a new environment variable which would be available across the whole server like: