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:[EMAIL PROTECTED]]
> Sent: Saturday, June 29, 2002 11:11 AM
> Subject: [PHP] ASP style "application-level" variables
> Hi,
> Apologies if this question has already been asked in the past, but I
> 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
> additional coding could be more error-prone or eat more system
> 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 (
> To unsubscribe, visit:

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to