SESSION vs ENV variables?
| From: | Vincent DUPONT | Date: | Mon, 08 Mar 2004 17:10:13 +0000 |
| Subject: | SESSION vs ENV variables? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-179780@lists.php.net to get a copy of this message | ||
Hi,
My script needs to load a config file with DB connection properties, etc.
At the beginning of the session, the ini file is loaded and all values are stored in $_SESSION
After the loading, a flag is also set in $_SESSION so that the ini loading is no more executed.
However, all ini properties are the same for all users, so I wonder if I could put them in a
cross-session variable. I guess $_ENV or $_SERVER should be good.
So, the question could be :
If I put something in $_SERVER, will these values be available for ALL users?
Any idea?
I have to keep the ini file, and could not hard code those properties.
Vincent