Re: Re: MDB2 with oci8 DSN
| From: | Lorenzo Alberton | Date: | Fri, 26 Sep 2008 13:06:49 +0000 |
| Subject: | Re: Re: MDB2 with oci8 DSN | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-29300@lists.php.net to get a copy of this message | ||
Ryan Taylor wrote:
No, still can't connect.what error are you getting?
You've got //localhost/XE in your example, how should my host be formatted?oci8://username:password@foo.example.com[:port]/?service=service try with $dsn = array (
'phptype' => 'oci8',
'dbsyntax' => 'oci8',
'username' => 'USERNAME',
'password' => '***',
'hostspec' => 'MISSERVER.leeds-art.ac.uk',
'service' => 'STUDENTS',
);
Why is the array syntax safer btw?because it doesn't have to be parsed. The string DSN will be converted into an array anyway, so you can save a few CPU cycles if you already provide the parameters in an array. Cheers, -- Lorenzo Alberton http://pear.php.net/user/quipo ________________________________________________________________________ Quipo Free Internet: sicuro e veloce senza costi di attivazione e senza canone, 2 e-mail da 50 Mb, 150 Mb di spazio web e molto di più! Registrati gratis: http://www.quipo.it