|
Posted by jj on 10/18/05 18:57
what i meant to say is that the script its self is now being exectued on a
unix server, as opposed to before where it was on a windows server.
so basically the header function i wrote displays the following:
when executed in unix:
blank page
when executed in windows:
actual fancy 404 error message
"Janwillem Borleffs" <jw@jwscripts.com> wrote in message
news:4355074d$0$51010$dbd4f001@dr4.euro.net...
> jj wrote:
> > Hi,
> >
> > I want to force a 404 error at certain times in my script, I have used
this
> > line of code in a windows environment with success. But recently I have
> > moved over to Unix and this script only renders a blank screen without
the
> > actual error being shown. Can any one help? thanks.
> >
> > header("HTTP/1.1 404 Not Found");
> >
>
> When you mean "with success" that you where shown the fancy 404 error IE
> page and you are faced with a white screen using another browser, then
> this is correct.
>
> When IE detects that the content of the error page is smaller than a
> certain amount of bytes, it replaces the page. Other browsers, like
> FireFox, don't do that.
>
>
> JW
>
Navigation:
[Reply to this message]
|