oci8 problem with php 4.4.2
| From: | Gerardo Hernández Hernández | Date: | Wed, 14 Jun 2006 15:53:34 +0000 |
| Subject: | oci8 problem with php 4.4.2 | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-24358@lists.php.net to get a copy of this message | ||
Hi i'm a mexican programmer and have this problem
I have to use the php version 4.4.2, oracle 8 and pear.
When i want to conect to the database using PEAR it suposes that i have to do:
require_once 'DB.php';
$dsn = array(
'phptype' => 'oci8',
'username' => 'user',
'password' => 'pasw',
'hostspec' => '192.168.1.175',
'database' => 'segob',
);
$db =& DB::connect($dsn, $options);
But it doesn't work, i've been tryng lot of combinations and only works if i
do this:
$dsn = array(
'phptype' => 'oci8',
'username' => 'user',
'password' => 'pasw',
'hostspec' => '192.168.1.175/segob',
'database' => 'segob',
);
$db =& DB::connect($dsn, $options);
Can you tellme why happen this or if i have a problem of configuration with
oracle or something else.