Posted by bizt on 12/03/07 23:06
On 3 Dec, 14:53, Acrobatic <jbn...@gmail.com> wrote:
> Typo fix on my previous post:
>
> $conn = DB::connect($dsn);
>
> instead of ($myDSN)
>
>
>
> > $conn = DB::connect($myDSN);
I tried your suggestion but still no luck. I thought Id go inside the
DB class and investigate and inside the connect function at the line
'@include_once "DB/${type}.php";' is where it seems to be falling
(code below). The string seems to be getting set right but my guess is
the @ character but im not too familair with what this does.
function &connect($dsn, $options = array())
{
$dsninfo = DB::parseDSN($dsn);
$type = $dsninfo['phptype'];
if (!is_array($options)) {
/*
* For backwards compatibility. $options used to be
boolean,
* indicating whether the connection should be persistent.
*/
$options = array('persistent' => $options);
}
if (isset($options['debug']) && $options['debug'] >= 2) {
// expose php errors with sufficient debug level
include_once "DB/${type}.php";
} else {
@include_once "DB/${type}.php";
}
..
..
..
Any ideas? Thanks Burnsy
[Back to original message]
|