"Dennis" <net90@mail.mira.dk> wrote in message
news:zAXp7.6765$lk7.124422@news.get2net.dk...
> Jeg vil gerne kunne sende en standard fejlside, hvis min MySQL database er
> død.
[...]
> header("HTTP/1.0 404 Not Found");
Not found? Er det ikke lidt ulogisk?
Prøv lige at kigge lidt på RFC 2616:
http://sunsite.dk/RFC/rfc/rfc2616.html
Side 65 "10.4 Client Error 4xx".
"The 4xx class of status code is intended for cases in which the client
seems to have erred."
Side 70 "10.5 Server Error 5xx".
"Response status codes beginning with the digit "5" indicate cases in which
the server is aware that it has erred or is incapable of performing the
request. "
Jeg ville nok vælge en af disse:
500 Internal Server Error
503 Service Unavailable
Begge er beskrevet på side 70 (afsnit 10.5.1 og 10.5.4)
--
Mvh.
Niels Andersen