RE: phpWeather Feature Request
Brought to you by:
iridium
From: Max H. <ma...@fl...> - 2004-02-09 08:25:58
|
> If you're annoyed about having your password spread across several > files, then the easiest solution is to make your defaults.php file > reference the password as a variable: > > /* db_password */ > $this->properties['db_password'] = $GLOBALS['password']; > > and then make sure that $password is in the global scope. I wouldn't do that unless either i) you are the only user on your server, or ii) PHP is in safe mode. Otherwise, some other user could include() your file, and retrieve your password. Cheers, Max |