Paul Waring wrote:
On Mon, Aug 08, 2005 at 04:37:12PM -0400, Eric Gorr wrote:
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.
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... ===
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php