Re: user-defined superglobals?
| From: | Jim Lucas | Date: | Sat, 23 Aug 2003 19:13:43 +0000 |
| Subject: | Re: user-defined superglobals? | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-160528@lists.php.net to get a copy of this message | ||
I have been wanting the same thing, but I too have not found a solution, and
do not know if it will come around.
Being able to create your own super-global would be a very nice feature.
Jim Lucas
----- Original Message -----
From: "Matthias Nothhaft" <php@mahono.de>
To: <php-general@lists.php.net>
Sent: Saturday, August 23, 2003 11:44 AM
Subject: Re: [PHP] user-defined superglobals?
> Sorry this all is not what I'm looking for.
> I see it is not possible at the moment.
>
> It would be nice to have a php-function like
>
> declare_superglobal($_MYFRAMEWORK);
>
> And then use $_MYFRAMEWORK like $_GET.
>
> Thanks nevertheless.
>
> Regards,
> Matthias
>
> Ray Hunter wrote:
> >>Well, this is clear, (I'm only new in the list - not in PHP ;-) )
> >>but I want it in a better/shorter way
> >>for the "master var" of a big project!
> >
> >
> > Yes you can set up a master file that includes all your master
> > vars...many php developers call this a configuration script and name it
> > config.php.
> >
> > This allows users to set up global variables that are used through out
> > the application.
> >
> >
> >>Is there a way to request such a feature and where?
> >>I think this would be nice for application frameworks!?
> >>Maybe also for PEAR...
> >
> >
> > There are implementations of this all thru PEAR.
> >
> > --
> > BigDog
> >
> >
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>