Re: postgresql DB::connect()

From: Date: Tue, 30 Mar 2004 02:08:23 +0000
Subject: Re: postgresql DB::connect()
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-26869@lists.php.net to get a copy of this message
Daniel Convissor wrote:
Follow up question... Why is your script setting a key if there's no value? Wouldn't your application be cleaner by not setting a value for it?
I think the opposite is true, actually. In a configuration file, isn't it "cleaner" to have '' or false assigned to a value that needs to be empty? $dsn['username'] = 'root'; $dsn['password'] = ''; I prefer that better to not having the key there at all (i.e. "was it set somewhere else...?" "is it using a default value...?"). Just my opinion. Hans

« previous php.pear.dev (#26869) next »