Fatal error: Class 'mysqli' not found in [

2020-03-26 13:18发布

I execute this on my centos/WHM server :

<?
if (!function_exists('mysqli_init') && !extension_loaded('mysqli')) {
    echo 'We don\'t have mysqli!!!';
} else {
    echo 'Phew we have it!';
}
?>

Result is: We don't have mysqli!!!

My problem is that:

Fatal error: Class 'mysqli' not found in /home/photosdr/public_html/includes/database.php on line 18

So how can I install it ? Thank you

1条回答
我只想做你的唯一
2楼-- · 2020-03-26 14:13

Try finding extension=php_mysqli.so in your php.ini and remove comment in front of it.

查看更多
登录 后发表回答