Re: [PHP4BETA] PEAR db abstraction
| From: | PHP4 List | Date: | Wed, 17 May 2000 03:23:58 +0000 |
| Subject: | Re: [PHP4BETA] PEAR db abstraction | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-15110@lists.php.net to get a copy of this message | ||
Nevermind, I figured it out. Gotta do a 'use("DB")' as well.
But I am getting a strange error in some test scripts where I'm using the DB
classes. Has anybody ever come across the following error?:
Fatal error: input in flex scanner failed in DB on line 1
Looks to me like a PHP or Zend bug since line 1 of DB.php is a comment.
-Darrell
"Darrell Brogdon" <dbrogdon@buytrek.com> wrote in message
news:9E5AA668748AA6468CA9B3F4E640F294AFBD@BT02M.buytrek.com...
> Anybody know the status of the db abstraction functions in PEAR? I
started
> playing around with the MySQL stuff but I'm getting the error:
>
> Fatal error: Undefined class name 'db' in DB/mysql.php on line 85
>
> The source is:
>
> <?php
> use("DB/mysql");
> $db = new DB_mysql;
> $db->connect("phptype://testuser:@localhost/test");
> ?>
>
> -Darrell
>
> *************************
> Darrell Brogdon
> BuyTrek
> 1123 Zonolite Road
> Suite 26
> Atlanta, GA 30306
> Phone: (404) 873-4037
> Fax: (404) 873-1548
> dbrogdon@buytrek.com
> www.buytrek.com
>
> --
> PHP 4.0 Beta Mailing List <http://www.php.net/version4/>
> To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net
> For additional commands, e-mail: php4beta-help@lists.php.net
> To contact the list administrators, e-mail: php4beta-admin@lists.php.net
>