Reply to Re: PEAR newbie trying to user PEAR DB and falling at the first hurdle

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация