Connecting Tech Pros Worldwide Help | Site Map

PEAR DB

  #1  
Old April 12th, 2007, 05:55 PM
andy
Guest
 
Posts: n/a
Hey All,

When I have
DB.php (PEAR)
in the root directory of my project it works ok using
require "DB.php";

When I put it in a seperate folder and call it using
require "classes/DB.php";

i get the following errors:

Warning: Problem with method call - please report this bug in /
home/..../DB.php on line 520
Warning: Problem with method call - please report this bug in /
home/..../DB.php on line 543

  #2  
Old April 13th, 2007, 11:05 AM
Toby A Inkster
Guest
 
Posts: n/a

re: PEAR DB


andy wrote:
Quote:
Warning: Problem with method call - please report this bug in /
home/..../DB.php on line 520
Warning: Problem with method call - please report this bug in /
home/..../DB.php on line 543
What is on those lines?

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Geek of ~ HTML/SQL/Perl/PHP/Python*/Apache/Linux

* = I'm getting there!
  #3  
Old April 16th, 2007, 03:05 AM
andy
Guest
 
Posts: n/a

re: PEAR DB


This is the PEAR DB.php

520: $dsninfo = DB::parseDSN($dsn);
....
540: $tmp = PEAR::raiseError(null, DB_ERROR_NOT_FOUND, null, null,
541: "Unable to include the DB/{$type}.php"
542: . " file for '$dsn'",
543: 'DB_Error', true);


On 13 Apr, 10:02, Toby A Inkster <usenet200...@tobyinkster.co.uk>
wrote:
Quote:
andy wrote:
Quote:
Warning: Problem with method call - please report this bug in /
home/..../DB.php on line 520
Warning: Problem with method call - please report this bug in /
home/..../DB.php on line 543
>
What is on those lines?
>
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~http://tobyinkster.co.uk/contact
Geek of ~ HTML/SQL/Perl/PHP/Python*/Apache/Linux
>
* = I'm getting there!

  #4  
Old April 16th, 2007, 09:05 AM
Toby A Inkster
Guest
 
Posts: n/a

re: PEAR DB


andy wrote:
Quote:
520: $dsninfo = DB::parseDSN($dsn);
...
540: $tmp = PEAR::raiseError(null, DB_ERROR_NOT_FOUND, null, null,
541: "Unable to include the DB/{$type}.php"
542: . " file for '$dsn'",
543: 'DB_Error', true);
Both of those look fairly innocuous, so I'm guessing the error is
elsewhere.

Firstly, do you have you made sure that PEAR DB supports your version of
PHP?

Secondly, try turning on all error reporting (error_reporting(E_ALL)) and
see if any more interesting errors show up -- I'm guessing there might be
something about being unable to include a particular file.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Geek of ~ HTML/SQL/Perl/PHP/Python*/Apache/Linux

* = I'm getting there!
  #5  
Old April 16th, 2007, 04:35 PM
andy
Guest
 
Posts: n/a

re: PEAR DB


Yes it supports the database, I have two version of the php script i
am writing, same server, same account etc.

The only differance is the way DB.php is stored.

one is in the root directory
include "DB.php";

one is in a sub directory

include "pear/DB.php";

On 16 Apr, 08:28, Toby A Inkster <usenet200...@tobyinkster.co.uk>
wrote:
Quote:
andy wrote:
Quote:
520: $dsninfo = DB::parseDSN($dsn);
...
540: $tmp = PEAR::raiseError(null, DB_ERROR_NOT_FOUND, null, null,
541: "Unable to include the DB/{$type}.php"
542: . " file for '$dsn'",
543: 'DB_Error', true);
>
Both of those look fairly innocuous, so I'm guessing the error is
elsewhere.
>
Firstly, do you have you made sure that PEAR DB supports your version of
PHP?
>
Secondly, try turning on all error reporting (error_reporting(E_ALL)) and
see if any more interesting errors show up -- I'm guessing there might be
something about being unable to include a particular file.
>
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~http://tobyinkster.co.uk/contact
Geek of ~ HTML/SQL/Perl/PHP/Python*/Apache/Linux
>
* = I'm getting there!

Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP PEAR DB module not working? mpar612 answers 3 May 2nd, 2007 08:45 PM
PEAR DB 1.6.0 has been released Analysis&Solutions answers 0 November 12th, 2005 08:45 PM
PEAR DB 1.6.0 has been released Analysis&Solutions answers 39 November 12th, 2005 06:57 AM
PEAR DB 1.6.0 has been released Analysis&Solutions answers 0 July 20th, 2005 03:59 AM
PEAR DB 1.6.0 has been released Analysis&Solutions answers 0 July 17th, 2005 04:31 AM