connection to data base with PEAR DB in PHP DESIGNER 2007

 
Post new topic   Reply to topic    Aprelium Forum Index -> Databases
View previous topic :: View next topic  
Author Message
egoo
-


Joined: 22 Jan 2008
Posts: 16

PostPosted: Fri May 23, 2008 10:14 am    Post subject: connection to data base with PEAR DB in PHP DESIGNER 2007 Reply with quote

'm tastsing code in php examples with using PHP Designer 2007 Professional ver. 5.4. When I'm running code above(connect.php) it appears an error:

11: require_once 'DB.php';

/*Fatal error:require_once() [<href='function.require'</a>]:Failed opening required DB.php(include path='; C:\Program Files\Php Designer 2007 Professional\PHP\pear') in C:\PHP5\connect.php in line 11*/

/* PHP WARNING:require_once(DB.php):Failed to open stream:No such file or directory in C:\PHP5\connect.php in line 11 */

$dbh = DB::connect("mysql://test@localhost/test");

if ( DB :: isError($dbh)) {
print "Connect failed!\n";
print "Error message:".$dbh->getMessage()."\n";
print "Error details:".$dbh->getUserInfo()."\n";
exit(1);
}
print "Connect ok!\n";

So, I tried to move \Program files\Php Designer 2007 Prof\PHP\pear in \PHP5 but it cannot. My OS is WINDOWS VISTA Home Premium.
Also DB.php does not exist on my computer but I myself don't have to create it, it must exsists in PEAR, I suppose so[/quote]
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Tue May 27, 2008 3:31 pm    Post subject: Re: connection to data base with PEAR DB in PHP DESIGNER 200 Reply with quote

egoo,

The error means that DB.php is missing and that probably the PEAR library is not installed (or correctly installed) in your PHP system.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> Databases All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group