php-developer-list | 2002112
Date: 11/20/02
- Next message: Dan Kalowsky: "Re: [PHP-DEV] Pear::db and odbc issue"
- Previous message: James Cox: "RE: [PHP-DEV] error handling"
- In reply to: John Coggeshall: "RE: [PHP-DEV] error handling"
- Next in thread: John Coggeshall: "RE: [PHP-DEV] error handling"
- Reply: John Coggeshall: "RE: [PHP-DEV] error handling"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
--- John Coggeshall <john <email protected>> wrote:
> See, the problem that I'm seeing here is that I don't believe PHP
> is reponsible for setting the error code returned by PHP.. For
> instance, a 404 error isn't handle by PHP at all. Likewise, I don't
> think PHP can say "turn this into a 500 error" to Apache.
How do you think PHP is able to change the HTTP response code when
someone uses a header("Location: ...") in their code? :-)
I also believe that header("HTTP/1.1 500 ...") will do the trick, and
there is also the revamped Apache hooks stuff that is being worked on
that should give even more control to developers who choose to use
it.
Chris
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Dan Kalowsky: "Re: [PHP-DEV] Pear::db and odbc issue"
- Previous message: James Cox: "RE: [PHP-DEV] error handling"
- In reply to: John Coggeshall: "RE: [PHP-DEV] error handling"
- Next in thread: John Coggeshall: "RE: [PHP-DEV] error handling"
- Reply: John Coggeshall: "RE: [PHP-DEV] error handling"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

