Re: Undefined function error
| From: | Tomas V.V.Cox | Date: | Tue, 12 Feb 2002 14:22:42 +0000 |
| Subject: | Re: Undefined function error | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-841@lists.php.net to get a copy of this message | ||
Sabarim wrote:
>
> Hi all,
>
> I'm using Squirrel Mail with Apache & PHP . I'm getting the following
> error when trying to access MySQL database :
>
> Call to Undefined function fetchRow() in blah..blah..
>
> Can anyone help ?
Try do some print_r() over the objects you are creating or use
DB::isError() to check if you get an error or not. Read more about error
handling with PEAR at:
http://vulcanonet.com/soft/pear_tut/
> How can I check whether PEAR is installed properly ?
>
> What are the required environment settings / entries in php.ini etc. ?
>
You only have to be sure that the PEAR directory is in your include_path
(in php.ini or set with ini_set()). If you have the PEAR.php file at:
/usr/local/lib/php/PEAR.php, just be sure that /usr/local/lib/php is in
your PHP include path.
Tomas V.V.Cox