Re: Generating a 404 status message with header()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux