如何判断PHP MysqLi扩展类是否开启
PHP;">
PHP
/* by http://www.manongjc.com/article/1206.html */
function MysqLinstalled (){
if (function_exists ("MysqL_connect")){
return true;
} else {
return false;
}
}
function MysqLiinstalled (){
if (function_exists ("MysqLi_connect")){
return true;
} else {
return false;
}
}
} else {
echo "
}
if (MysqLiinstalled()){
echo "
} else {
echo "
}
?>
if (MysqLinstalled()){
echo "
The MysqL extension is installed.
";} else {
echo "
The MysqL extension is not installed..
";}
if (MysqLiinstalled()){
echo "
The MysqLi extension is installed.
";} else {
echo "
The MysqLi extension is not installed..
";}
?>
感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!
原文链接:https://www.f2er.com/php/18210.html