Re: unable to locate DB.php after PEAR installation and all the checks
| From: | Daniel O'Connor | Date: | Tue, 23 Jun 2009 04:22:56 +0000 |
| Subject: | Re: unable to locate DB.php after PEAR installation and all the checks | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-29898@lists.php.net to get a copy of this message | ||
On Tue, Jun 23, 2009 at 2:35 AM, Krishnamurthy Nagarajan
<knr_sh@yahoo.com>wrote:
> Hi friends,
>
> I have installed PHP 5.2.9 and went ahead and PEAR database abstraction
> layer as per the PEAR manual. But I am unable to locate DB.php
> which is essential to establish connection with the database (MySQL in my
> case) and do db operations. I have done all the necessary checks as per the
> manual to ensure that the installation is correct, include path is fine, PHP
> is running (phpinfo.php runs correctly) PEAR is fine (sample check_pear.php
> as per the manual and so on. But, other than DependencyDB.php, I haven't
> been able to locate DB.php in the directory hierarchy where I installed PHP.
> The OS is WinXP. Please help and let me know what mistake I am doing.
> Thanks.
Doing:
c:\pear install DB
should install as:
c:\php\PEAR\DB.php
and
require_once 'DB.php'; should work
so long as c:\php\PEAR\ is in your include path.
So; things which might be wrong:
- Apache needs restarting whenever you change your ini
- Make sure you only have 1x php.ini
- Lack of trailing "\" on your directories?