Re: Oracle OCILogon succeeds, but DB::connect() fails

From: Date: Fri, 23 Aug 2002 23:56:27 +0000
Subject: Re: Oracle OCILogon succeeds, but DB::connect() fails
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-2181@lists.php.net to get a copy of this message
Folks, It turns out that while: $db = DB::connect( "oci8://DB_USER:DB_PASS" ); fails, a slight modification to: $db = DB::connect( "oci8://DB_USER:DB_PASS@" ); causes it to succeed. Wihthout the @ sign, the parser thinks DB_USER:DB_PASS is the hostspec, and oci8.php never gets the username or password. My first three reads of the documentation lead me to believe that the first syntax should work .... guess I need to read more closely. -Darren

« previous php.pear.general (#2181) next »