Re: installing php with pear
| From: | Brad Kowalczyk | Date: | Thu, 25 Nov 2004 08:49:51 +0000 |
| Subject: | Re: installing php with pear | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-14804@lists.php.net to get a copy of this message | ||
Merlin wrote:
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 Are you including/requiring the file 'DB.php' into your script?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 brad@ibiscode.com 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