Content deleted Content added
Line 54:
===PHP===
The following is a sample implementation in PHP. The proof of concept stores the status of a MySQL server into a shared memory cache (
==== Check ====
Line 64:
if ($mysqli->connect_error) {
} else {
$mysqli->close();
}
Line 74:
<syntaxhighlight lang="php">
if (
echo "The database server is currently not available. Please try again in a minute.";
exit;
|