Re: getting php to generate a 503
| From: | Chris Shiflett | Date: | Wed, 12 Oct 2005 14:12:03 +0000 |
| Subject: | Re: getting php to generate a 503 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-223959@lists.php.net to get a copy of this message | ||
dnwo@xtra.co.nz wrote:
I want to write a php page that can return a 503 with some useful information. <?php header("HTTP/1.0 503 Service Unavailable"); echo "Page execution failed.\n"; ?> Is what I've done so far - yet it doesn't workYou need to elaborate or define what "works" means to you, because my first assumption is that it works just fine. What behavior are you wanting? By the way, LiveHTTPHeaders is pretty useful for examining HTTP: http://livehttpheaders.mozdev.org/ Hope that helps. Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/