RE: [PHP] Globals defined in functions
| From: | John W. Holmes | Date: | Thu, 01 May 2003 21:17:44 +0000 |
| Subject: | RE: [PHP] Globals defined in functions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-146012@lists.php.net to get a copy of this message | ||
> I've done a parse_ini_file() like this: $_CUSTOMIZE =
> parse_ini_file("...");
>
> so that I can refer to things like $_CUSTOMIZE["databasename"] and
such.
> Anyway, when I have to globalize these in functions, like
>
> function TableExists($tablename) {
> global $_CUSTOMIZE["databasename"];
global $_CUSTOMIZE;
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/