View previous topic :: View next topic |
Author |
Message |
egoo -
Joined: 22 Jan 2008 Posts: 16
|
Posted: Fri May 23, 2008 10:14 am Post subject: connection to data base with PEAR DB in PHP DESIGNER 2007 |
|
|
'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 |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Tue May 27, 2008 3:31 pm Post subject: Re: connection to data base with PEAR DB in PHP DESIGNER 200 |
|
|
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 |
|
|
|