On Wednesday 09 May 2001 18:09, Dean Hall wrote:
> I'm trying to force arbitrary errors in the HTTP header like so:
>
> header('HTTP/1.1 404 Not found.');
>
> It's not working like I expected. I found a few discussions of this on
> this list that said that this did not work with PHP 3, but I've found
> nothing about PHP 4.

Works fine here:

function pbHTTP_404 ()
{
        header ("HTTP/1.0 404 Not Found");
        include ('404.html');
        exit ();
}

-- 
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)

REALITY.SYS corrupted ... reboot Universe [Y,n]?

--
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]

Reply via email to