Page 1 of 1

Installed Xampp correctly but can't access PEAR::DB

PostPosted: 19. March 2010 06:27
by thanjeys
Hi!!!

i installed XAMPP and all that seems to work fine but PEAR::DB doesn't works it shows error like this
"Warning: require_once(DB.php) [function.require-once]: failed to open stream: No such file or directory in D:\xampp\htdocs\balance_sheet\new.php on line 2"
while accessed :?: .

thanks in advance.

Re: Installed Xampp correctly but can't access PEAR::DB

PostPosted: 19. March 2010 12:12
by Nobbie
The PEAR::DB is not installed by Xampp.

Open an explorer. proceed to the Xampp folder and start the "Xampp Shell" by double clicking "xampp_shell.bat". In the opening command windows you are prompted with a '#', copy & paste the following line into the command line and execute it:

Code: Select all
pear install DB-1.7.14RC1


This installs the DB package, but you will receive a warning that the package is deprecated in favor of pear/MDB2.

You may also get a warning that channel 'pear.php.net' has updated its protocols, use "pear channel-update pear.php.net" to update, simply run the recommended update by entering the desired command.

Re: Installed Xampp correctly but can't access PEAR::DB

PostPosted: 19. March 2010 13:01
by thanjeys
Thank you!!!! :D

Now i have problem while executing queries. Database connection is worked but it shows error like this
Fatal error: Call to undefined method DB_Error::fetchRow() in D:\xampp\htdocs\balance_sheet\new.php on line 34 .

Re: Installed Xampp correctly but can't access PEAR::DB

PostPosted: 19. March 2010 16:19
by Nobbie
You should ask the author of that script, it seems to be outdated.