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" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]