tags:

views:

40

answers:

1

I have use DB::Connect in my program for accessing the database. I ran my php program this shows the error

DB.php file is not their.

require_once 'DB.php';

PEAR::setErrorHandling(PEAR_ERROR_DIE);

Then I copy the DB.php file and PEAR.php file from another machine to my machine after that If I ran from command line it didn't through the error. while running from browser this shows error. How to solve this problem.? How to install this DB.php?

+3  A: 

PEAR provides a command line installer that should take care of all the details:

pear install DB

Since PEAR packages are mainly PHP code, you can also copy the files manually, but you must make sure you copy everything, not only the first required file, and your script must also be able to find the files so you must add pear to the include_path PHP directive.

Álvaro G. Vicario
Actually ... when I am running the file in CLI it working fine. When I am running the same file in web browser , the conection function get blocked .... And more thing is that I have used pg_connect function it is working fine in both side (CLI and Web browser ) . Now my doubt is why DB::connect get blocking in web browser...?
ungalnanban
I don't know what is the problem? thats why I posted here. If you don't know the answer your don't answer for this.
ungalnanban
I'm terribly sorry for not fulfilling your high customer support quality standards and wasting your invaluable time with answers that do not work. I'll be glad to offer a refund.
Álvaro G. Vicario