Back to index

php5  5.3.10
skipifconnectfailure.inc
Go to the documentation of this file.
00001 <?php
00002 require_once('connect.inc');
00003 if ($skip_on_connect_failure) {
00004        include_once('connect.inc');
00005        $link = @my_mysqli_connect($host, $user, $passwd, $db, $port, $socket);
00006        if (!is_object($link))
00007               die(sprintf("skip Can't connect to MySQL Server - [%d] %s", mysqli_connect_errno(), mysqli_connect_error()));
00008        mysqli_close($link);
00009 }
00010 ?>