RE: [PHP] ASP style "application-level" variables

From: Date: Sat, 29 Jun 2002 15:18:53 +0000
Subject: RE: [PHP] ASP style "application-level" variables
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-104490@lists.php.net to get a copy of this message
This seems to be the question of the question of the week. No, there are no application level variables in PHP. You can set constants, either through your web server, or maybe PHP.ini, but that's about it. I think the easiest way to implement something like this would be to use the auto_append_file and auto_prepend_file settings of PHP.ini. Make that file load the application variables from the database, and the prepend file saves any changes... ---John Holmes... > -----Original Message----- > From: Lee [mailto:lee@unassemble.co.uk] > Sent: Saturday, June 29, 2002 11:11 AM > To: php-general@lists.php.net > Subject: [PHP] ASP style "application-level" variables > > Hi, > > Apologies if this question has already been asked in the past, but I have > only just registered for this list. > > Does PHP in anyway support ASP style application-level variables in a > similair way to how standard sessions are used. > > Though of implementing this as either files or database records but the > additional coding could be more error-prone or eat more system resources > than using a feature built into PHP itself. > > I would be interested to hear other peoples views on this feature. > > Lee > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#104490) next »