RE: [PHP-DB] Application variables

From: Date: Mon, 29 Oct 2001 01:27:25 +0000
Subject: RE: [PHP-DB] Application variables
Groups: php.db 
Request: Send a blank email to php-db+get-13790@lists.php.net to get a copy of this message
php doesn't have application variables as such, however there are a couple options for implementing them... 1. have a single file with your "application variables" and manually include that in all files of the project 2. use the session_*() functions to "keep the vars alive" on pages 3. as you said, store to db and update once in a while (or a combination of these... i.e. 3 + 2, load from db, carry around in session and then save to db again) HTH beau // -----Original Message----- // From: sharmad@im.eth.net [mailto:sharmad@im.eth.net] // Sent: Sunday, 28 October 2001 3:15 AM // To: php-db@lists.php.net // Subject: [PHP-DB] Application variables // // // Pls tell me how to implement application variables in PHP // like they are supported // in ASP else i might have to have the value stored in the // database and update // every now and then which is simply an overhead. // // -- // PHP Database Mailing List (http://www.php.net/) // To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net // For additional commands, e-mail: php-db-help@lists.php.net // To contact the list administrators, e-mail: // php-list-admin@lists.php.net //

« previous php.db (#13790) next »