Posted by GT on 12/28/06 10:37
BKDotCom wrote:
> GT wrote:
>> Thanks,
>
> The reason you don't get any output is because you didn't output
> anything!
> You simply sent a header. At least with your example.
> try
>
> <?php
> header('HTTP/1.x 404 Not Found');
> echo 'Page Not Found!';
> ?>
I've been struggling with this! I think I was getting confused by the IE
404 message, which was sometimes appearing when I sent the header, and
sometimes not. That seems to be more reliable today - just a cacheing
issue perhaps? Seems good enough now though. Thanks for the help.
Navigation:
[Reply to this message]
|