php - MySQLi not found error -
i deployed website staging environment , getting following error:
fatal error: class 'mysqli' not found in d:\clientsites\baileyboiler.com\www\new\php\db.php on line 11
at first assumed mysqli not installed, running phpinfo()
reveals following:
to me looks mysqli installed (though reading wrong). should do?
code
class db { public static function getconnection() { return new mysqli(dbhost, dbuser, dbpassword, defaultdatabase); } }
(line 11 return new mysql(...);
)
update
i added extension=php_mysqli.dll
php.ini located @ /windows/php.ini
(according phpinfo()
, 1 being loaded):
loaded configuration file c:\windows\php.ini
but error persists. know mysqli.dll exists @ c:\php\ext
- because can see file. now?
i got error corrected enabling/editing following config in php.ini
:
1st (uncomment , add config):
include_path = "c:\php\includes"
2nd (uncomment):
extension_dir = "ext"
3rd (uncomment , edit config):
extension=d:/php/ext/php_mysql.dll extension=d:/php/ext/php_mysqli.dll
Comments
Post a Comment