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'] = "[EMAIL PROTECTED]";

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

Reply via email to