[UPHPU] PHP and HTTP codes

Joshua Simpson digitalsuicide at gmail.com
Wed Apr 26 22:38:59 MDT 2006


On 4/26/06, Roberto Mello <rmello at fslc.usu.edu> wrote:

> Is there a way to ttell PHP to return the right HTTP code (i.e. 500) when
> a page errors out? I'm testing an application but it's kinda hard to tell
> failure when the server just happily returns a 200 OK even when the page
> fails.

Use header()


--
Josh
http://dataw0lf.org



More information about the UPHPU mailing list