Re: oci8 problem with php 4.4.2

From: Date: Thu, 15 Jun 2006 03:39:23 +0000
Subject: Re: oci8 problem with php 4.4.2
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-24363@lists.php.net to get a copy of this message
On 6/14/06, Gerardo Hernández Hernández <geh@praxis.com.mx> wrote:
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.
You need to tell us what error you're getting. If you're having oracle connecting problems I suggest you try ocilogon() manually to see what it says. -- Justin Patrin

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