Posted by Jochem Maas on 10/10/05 15:41
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");
try
header("Status: 503 Service Unavailable");
> echo "Page execution failed.\n";
>
> ?>
>
> Is what I've done so far - yet it doesn't work, the headers don't seem to be
> modified and my page just returns the echoed contet and both firefox and IE
> blithely ignore the fact that I set the server unavailable header :( can
> anyone give me a clue as to what I've done wrong?
>
> Cheers,
>
> - Alex
>
[Back to original message]
|