Re: Discussion of method -- config files
| From: | tedd | Date: | Fri, 20 Jun 2008 03:30:11 +0000 |
| Subject: | Re: Discussion of method -- config files | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-275664@lists.php.net to get a copy of this message | ||
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 SancarYeah, but now your code is OOP polluted. :-) Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com