Re: Re: Discussion of method -- config files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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");

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux