Re: Generating a 404 status message with header()

From: Date: Mon, 08 Aug 2005 20:55:13 +0000
Subject: Re: Generating a 404 status message with header()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-220258@lists.php.net to get a copy of this message
Hello Eric, Monday, August 8, 2005, 9:37:12 PM, you wrote: EG> I have another file (doesexist.php) with the contents: EG> <?PHP EG> header("HTTP/1.0 404 Not Found"); ?>> EG> If I enter into my browser: EG> http://mydomain.com/doesexist.php EG> I get a blank page. Apparently, this does not trigger the 404 EG> directive. The header 404 is correct - check to see if your script contains any extra white-space somewhere that is causing the header to fail? (i.e. a carriage return after the closing php tag). Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services Zend Certified Engineer "I do not fear computers. I fear the lack of them." - Isaac Asimov

« previous php.general (#220258) next »