Re: PEAR DB Error??
| From: | Ian Leckie | Date: | Tue, 22 Jul 2003 14:18:06 +0000 |
| Subject: | Re: PEAR DB Error?? | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-6721@lists.php.net to get a copy of this message | ||
On Tuesday, July 22, 2003, at 11:44 AM, Graham Clarke wrote:
Does anyone have some insight into what causes this warning? I've included the code from PEAR/DB.php w/ line numbers below.It looks like you have a malformed DSN. The DB::parseDSN method is returning a value of 3 for your phptype, when it should be finding something like 'mysql', 'pgsql', 'sybase', etc. Since there is no phptype '3', there is no include file named '3.php', and so it throws an error. A well-fomed DSN would look something like this: 'mysql://user:pass@localhost/database_name'. <http://pear.php.net/manual/en/package.database.db.intro-dsn.php> -- Ian Leckie Interactive Development Coordinator Integer > Midwest