Thread: PHP VS Oracle
View Single Post
Old June 16th, 2004, 06:23 AM
Daniel Walker Daniel Walker is offline
Friend of Wrox
Join Date: Jun 2003
Location: , , United Kingdom.
Posts: 256
Thanks: 0
Thanked 0 Times in 0 Posts

Why are you passing "TRUE" as the second parameter to connect(), as a matter of interest? That's quite an old-fashioned way of connecting. Wouldn't it be better to assign an array of options more explicitly, such as:

$options = array(
    'debug' => 2,
    'portability' => DB_PORTABILITY_ALL,
...and then say:

$db =& DB::connect($dsn, $options);

Just a suggestion.