I'm trying to force my index.php to force a 404 error with php (unless some conditions are met, but thats not important). However I cannot get it to work. I took a look at the headers being sent by the server and it looks like this:
HTTP/1.1 200 OK
Date: Sat, 02 Nov 2002 17:42:25 GMT
Server: Apache/1.3.26 (Win32)
X-Powered-By: PHP/4.2.2
Connection: close
Content-Type: text/html
So, I just did
Header("HTTP/1.0 404");
But it always returns a 500 internal server error. I tried exiting; it, and other things. Is there a specific way I can make it return a 404 error?