Frustrating error: extension not found
Posted: Mon Aug 15, 2005 3:39 pm
I have a script that connects to a database using PEAR::DB for database abstraction. Here is the relevent part of the script:
When I run this, I get the following error message:
DB Error: extension not found
I'm not quite sure which extension isn't being found correctly. I have the mysql extension enabled (and the dll is in the proper directory) in php.ini, and there are no errors about DB.php not being found. I'm stumped, can anyone help?
EDIT: I forgot to say, the ****'s all hold the proper values, and the database is indeed on the localhost. I'm using MySQL 4.1 and PHP 5 on Windows 2000 Professional with Apache 2.0.
Code: Select all
require_once('DB.php');
$db_engine = 'mysqli';
$db_user = '****';
$db_pass = '****';
$db_host = 'localhost';
$db_name = '****';
$datasource = $db_engine.'://'.
$db_user.':'.
$db_pass.'@'.
$db_host.'/'.
$db_name;
$db = DB::connect($datasource);
if (PEAR::isError($db)) {
die($db->getMessage());
}DB Error: extension not found
I'm not quite sure which extension isn't being found correctly. I have the mysql extension enabled (and the dll is in the proper directory) in php.ini, and there are no errors about DB.php not being found. I'm stumped, can anyone help?
EDIT: I forgot to say, the ****'s all hold the proper values, and the database is indeed on the localhost. I'm using MySQL 4.1 and PHP 5 on Windows 2000 Professional with Apache 2.0.