Pear help
| From: | Craig Hoffman | Date: | Mon, 28 Feb 2005 16:40:46 +0000 |
| Subject: | Pear help | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-38704@lists.php.net to get a copy of this message | ||
Hi There,
I'm trying to configure my OS X box to work with PEAR. Everything seems to be working (updating PEAR libraries, etc.) except when I run my test script I get the following error:
Fatal error: Cannot redeclare class db in /usr/lib/php/DB.php on line 271
Here is my test script:
<?php
require 'DB.php';
if (class_exists('DB')) {
print 'Ok';
} else {
print 'Nope';
}
?>
I've included the path in my PHP.INI file and I still get this error. I've tested this script on another PEAR server and it works fine.
Does anyone have any ideas? If this is wrong list, my apologies. Any help would be greatly appreciated.
- Craig