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

Problems with the Windows version of XAMPP, questions, comments, and anything related.

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

Postby thanjeys » 19. March 2010 06:27

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.
thanjeys
 
Posts: 2
Joined: 19. March 2010 06:10

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

Postby Nobbie » 19. March 2010 12:12

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.
Nobbie
 
Posts: 8770
Joined: 09. March 2008 13:04

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

Postby thanjeys » 19. March 2010 13:01

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 .
Last edited by thanjeys on 20. March 2010 05:30, edited 2 times in total.
thanjeys
 
Posts: 2
Joined: 19. March 2010 06:10

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

Postby Nobbie » 19. March 2010 16:19

You should ask the author of that script, it seems to be outdated.
Nobbie
 
Posts: 8770
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 87 guests