You are here: Re: [PHP] getting php to generate a 503 « PHP « IT news, forums, messages
Re: [PHP] getting php to generate a 503

Posted by Chris Shiflett on 10/12/05 17:12

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация