Re: getting php to generate a 503

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



dnwo@xxxxxxxxxx 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 work

You 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/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux