Re: Generating a 404 status message with header()
| From: | Eric Gorr | Date: | Tue, 09 Aug 2005 13:41:37 +0000 |
| Subject: | Re: Generating a 404 status message with header() | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-220287@lists.php.net to get a copy of this message | ||
Paul Waring wrote:
On Mon, Aug 08, 2005 at 04:37:12PM -0400, Eric Gorr wrote:I believe I found the thread you were referring to, but it does not provide the answer that I found actually works. Since my goal is _strictly_ and _only_ to get the 404 directive triggered and _absolutely_ nothing more, the solution I found was for doesexists.php to use the Location directive to redirect to a page which I know does not exist. This, obviously, triggers the 404 directive as I wanted. Problem solved. -- == Eric Gorr =============================== http://www.ericgorr.net === "Those who would sacrifice a little freedom for temporal safety deserve neither to be safe or free." - Benjamin Franklin == Insults, like violence, are the last refuge of the incompetent... ===Should it? Is it possible to write a doesexists.php script which would cause the 404 directive to be triggered? I also tried: header("Status: 404 Not Found"); but this did not work either.Try searching the archives for this list, I'm sure this question, or one very similar to it, was asked and answered fairly recently.