Then you could use a serialized file in the filesystem that any app can read. For added speed, make a RAM-disk and store the file there. Slight overhead deserializing, but it's likely faster than recreating whatever it is (if it's large).
Then you've still got to worry about concurrency issues. Just reading the file isn't any good if you can't update the variables when appropriate. So that means the script needs to lock the file between reading, updating, and writing.
Like Chris said, though, this has been discussed before and Google likely has some possible solutions.
-- ---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals – www.phparch.com
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php