note 4684 modified in header by ronabop
| From: | ronabop@php.net | Date: | Sun, 01 Oct 2000 06:56:48 +0000 |
| Subject: | note 4684 modified in header by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-5759@lists.php.net to get a copy of this message | ||
As said above, the function
header("http/1.0 404 Not Found");
does not work. In fact, it only works when PHP is compiled as an Apache module (see source head.c)
It is better to use
header("status: 404 Not Found");
Because it always works whenever php is compiled as an Apache module or a standalone binary.
(Applies to php up to 3.0.15, i have not tested the later versions)
(remove the 'Z' in my email to answer me)
http://www.php.net/manual/function.header.php