mysql_is_available

Versions
5 – 6
mysql_is_available()

Check if MySQL is available.

Return value

TRUE/FALSE

Code

includes/install.mysql.inc, line 11

<?php
function mysql_is_available() {
  return function_exists('mysql_connect');
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.