Merlin wrote:
Are you including/requiring the file 'DB.php' into your script?Hi there,
I am trying to get pear:DB running. So I first tried to install it via command line like on the pear site described. Besides that the list command says it is installed, I found that it is not since the db functions are not known by php.
So I called php.info and found that there is no mentioning from pear. Than I installed the newest 4.x version of php '--with-PEAR'. But that did not help either. There is no section inside the phpinfo file which says anything about that pear is enabled and the functions are still not available.
Can anybody help please?
Thank you in advance, Merlin
The easiest way to do it is to add the path to your PEAR directory to the include_path directive in php.ini and then just put the line "require('DB.php');" into your scripts _before_ you try to use any DB functions.
All PEAR packages need to be included or required into your script for you to use their functions, they are not automatically available.
Cheers, --
Brad Kowalczyk Web Developer [EMAIL PROTECTED] http://ibiscode.com
-- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.290 / Virus Database: 265.4.2 - Release Date: 24/11/2004