Re: forcing error documents

From: Date: Wed, 09 May 2001 16:49:35 +0000
Subject: Re: forcing error documents
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-52144@lists.php.net to get a copy of this message
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]?

« previous php.general (#52144) next »