Re: causing HTTP error status

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

 



On 5/5/06, Nic <nferrier@xxxxxxxxxxxxxxxxxxxx> wrote:
But /mydir/some.php doing:

   header("HTTP/1.1 404 Rubbish!!!")

_never_ causes the error document to be picked up.

That's right. Apache's not going to take action based
on the headers you generate in your PHP script. These
headers are just going to go to the browser. If you
want to display the error page, you'll have to make your
PHP script include/readfile() it.

It's strange because the docs say this can be done; I can't find an
example that is purported to work outside of the docs though.

Where do the docs say this? I can't find it in http://php.net/header.

Rabin

--
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