Re: Send browser a 404 not found header?

From: Date: Sun, 14 Jan 2001 00:21:16 +0000
Subject: Re: Send browser a 404 not found header?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-34429@lists.php.net to get a copy of this message
ahhh, cracked it ;) header("HTTP/1.1 404 Not Found"); echo('<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">'); exit; will produce the nice IE 404 error document... in fact, echoing anything under a certain size, after the header, seems to get IE to do its thing. Jamie Burns. ----- Original Message ----- From: "Jamie Burns" <jamie.burns@dynamicexpression.co.uk> To: <php-general@lists.php.net> Sent: Saturday, January 13, 2001 11:49 PM Subject: [PHP] Send browser a 404 not found header? Hi.. How can I send a browser a "404 not found" page? I tried putting this in a script: header("Status: 404 Not Found"); exit; before any other output, but i keep getting the standard page: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content="text/html; charset=windows-1252" http-equiv=Content-Type></HEAD> <BODY></BODY></HTML> from php. any ideas? jamie burns.

« previous php.general (#34429) next »