Last active
August 29, 2015 14:05
-
-
Save lucasff/4bcecb657a9c70ca19a4 to your computer and use it in GitHub Desktop.
Perishable Press WordPress database error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // custom WordPress database error page tutorial @ digwp.com | |
header('HTTP/1.1 503 Service Temporarily Unavailable'); | |
header('Status: 503 Service Temporarily Unavailable'); | |
header('Retry-After: 3600'); // 1 hour = 3600 seconds | |
mail("[email protected]", "Database Error", "There is a problem with teh database!", "From: Montgomery Scott"); | |
?> | |
<!DOCTYPE HTML> | |
<html dir="ltr" lang="en-US"> | |
<head> | |
<title>503 Service Temporarily Unavailable</title> | |
<style type="text/css"> | |
h1, p { | |
font-family: Helvetica, sans-serif; | |
font-size: 24px; | |
color: #333; | |
} | |
p { | |
font-size: 14px; | |
} | |
</style> | |
</head> | |
<body> | |
<h1>Captain, the ship can’t take much more of this!</h1> | |
<p>Perishable Press is currently experiencing technical issues — Please check back soon!</p> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment