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