Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $boolHasMySQL = false;
- $boolHasMySQLi = false;
- $boolHasMySQLnd = false;
- $strSentence = '<p>';
- if (function_exists('mysql_connect')) {
- $boolHasMySQL = true;
- $strSentence.= "(Deprecated) MySQL <b>is installed</b> ";
- } else
- $strSentence.= "(Deprecated) MySQL <b>is not</b> installed ";
- if (function_exists('mysqli_connect')) {
- $boolHasMySQLi = true;
- $strSentence.= "and the new (improved) MySQL <b>is installed</b>. ";
- } else
- $strSentence.= "and the new (improved) MySQL <b>is not installed</b>. ";
- if (function_exists('mysqli_get_client_stats')) {
- $boolHasMySQLnd = true;
- $strSentence.= "This server is using MySQLnd as the driver.";
- } else
- $strSentence.= "This server is using libmysqlclient as the driver.";
- echo $strSentence,'</p>';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement