Re: Creating custom superglobals
| From: | Dave Goodchild | Date: | Tue, 15 Aug 2006 00:04:31 +0000 |
| Subject: | Re: Creating custom superglobals | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-240674@lists.php.net to get a copy of this message | ||
On 15/08/06, Richard Lynch <ceo@l-i-e.com> wrote:
On Mon, August 14, 2006 8:40 am, Ville Mattila wrote: Does the PHP environment (5.1.4) provide a way to define some custom variables as a superglobal? It would be useful for saving certain site preferences and settings that must be referred in many variables and classes, without every time writing global keyword at the beginning of a function definition. ...or why not keep it simple and use include_once/require_once? I generally have a config file for every app that contains constants, variables and so on that are used across the application.