我想在我的新鮮Fedora 17安裝上使用mysqli。我安裝了php,mysql-server和php-mysql。不過,下面的代碼將報告錯誤:在fedora linux上使用mysqli
<?php
if (!function_exists('mysqli_init') && !extension_loaded('mysqli')) {
echo 'We don\'t have mysqli!!!';
} else {
echo 'Phew we have it!';
}
?>
php_info告訴-with-mysqli的=共享
我該怎麼辦呢?
檢查此http://stackoverflow.com/questions/4796841/how-do-i-enable-mbstring-extension-on-php-5-fedora-server但相反,你有使用php-mysqli – Hawili