I think there is also a directive in php.ini to ALWAYS include a certain file at the top of each script, transparently.
Perhaps you could dynamically write to this file as needed, or dynamically write to a MySQL table which is called/queried by this script. This may or may not help, depending on your needs :) Justin French on 29/06/02 6:38 AM, Michael Sweeney ([EMAIL PROTECTED]) wrote: > Depending on what data you need to have in these variables, you might be > able to set them as environment variables through apache (that is, _if_ > you're running apache, _if_ you have access to the configuration file, > _if_ mod_env is installed, etc). I'm guessing that wouldn't be a > flexible enough alternative for you, but it might be worth considering. > > ..michael.. > > On Fri, 2002-06-28 at 13:19, Jay Blanchard wrote: >> [snip] >> Perhaps something of this nature is already available and I don't know >> about it, but in the scope of the current project I am working on it >> would be beneficial to take the concept of superglobals and apply it to >> sessions. That is, to be able to register a session-style variable in >> which all instances of the script and/or server to access. I know it is >> possible to use a database or write a file to keep track of such an >> item, but it would be nice to have this feature built in to php. >> [/snip] >> >> I know what you mean. I have written a file that was included on every page >> instance that had the session start function with all of the registered >> session variables and included the database connections as well. Not as neat >> as a supersession function you speak of, but workable. >> >> Jay >> >> >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php