Re: Discussion of method -- config files

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

 



At 5:31 PM +0300 6/19/08, Sancar Saran wrote:
Hi tedd

My final solution was.

class conf {

	public static $vals  = array(); // config array
...
}

conf::$vals['mysql_host'] = 'localhost';
conf::$vals['mysql_user'] = "user@localhost";

you can access anywhere of your script and you won't need to pollute $GLOBALS.

Regards

Sancar

Yeah, but now your code is OOP polluted.  :-)

Cheers,

tedd
--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
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