Re: Re: Discussion of method -- config files

From: Date: Fri, 20 Jun 2008 12:55:39 +0000
Subject: Re: Re: Discussion of method -- config files
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-275692@lists.php.net to get a copy of this message
Al wrote:
I freely use defined constants for all fixed variables in my config file. It insures they cannot be inadvertently reassigned by a function someplace and are available everywhere.
That's a good idea, I have been thinking about this. Never thought they have global scope, though - a good reminder.
define('MYSQL_HOST',"localhost");


« previous php.general (#275692) next »