Re: [PHP] Defining own globals

2004-01-14 Thread Chris Boget
> > Would it be possible to make all hard-coded variables beginning with $_ > > automatically global? I've found useful to set some variables per page > > to $_PAGE variable (for example $_PAGE['title'] etc) that would be nice > > to get available to all functions without extra procedures (like glo

Re: [PHP] Defining own globals

2004-01-14 Thread CPT John W. Holmes
From: "Ville Mattila" <[EMAIL PROTECTED]> > Would it be possible to make all hard-coded variables beginning with $_ > automatically global? I've found useful to set some variables per page > to $_PAGE variable (for example $_PAGE['title'] etc) that would be nice > to get available to all functions

[PHP] Defining own globals

2004-01-14 Thread Ville Mattila
Hello, Would it be possible to make all hard-coded variables beginning with $_ automatically global? I've found useful to set some variables per page to $_PAGE variable (for example $_PAGE['title'] etc) that would be nice to get available to all functions without extra procedures (like global