Re: [PHP] causing HTTP error status

2006-05-06 Thread Richard Lynch
On Sat, May 6, 2006 5:28 am, Rabin Vincent wrote: >> I gotta go with Nic on this... >> >> Either I'm being really obtuse, or it just plain don't work right. >> >> Consider this minimalist example: >> >> http://l-i-e.com/404/test.php >> http://l-i-e.com/404/index.htm >> >> The 404 header is being co

Re: [PHP] causing HTTP error status

2006-05-06 Thread Ólafur Waage
Nic wrote: "Richard Lynch" <[EMAIL PROTECTED]> writes: On Fri, May 5, 2006 5:01 am, Nic wrote: Hi Rabin "Rabin Vincent" <[EMAIL PROTECTED]> writes: On 5/5/06, Nic <[EMAIL PROTECTED]> wrote: But /mydir/some.php doing: header("HTTP/1.1 404 Rubbish!!!") _never_ cau

Re: [PHP] causing HTTP error status

2006-05-06 Thread Nic
"Richard Lynch" <[EMAIL PROTECTED]> writes: > On Fri, May 5, 2006 5:01 am, Nic wrote: >> Hi Rabin >> "Rabin Vincent" <[EMAIL PROTECTED]> writes: >> >>> On 5/5/06, Nic <[EMAIL PROTECTED]> wrote: But /mydir/some.php doing: header("HTTP/1.1 404 Rubbish!!!") _never_ causes

Re: [PHP] causing HTTP error status

2006-05-06 Thread Rabin Vincent
On 5/6/06, Richard Lynch <[EMAIL PROTECTED]> wrote: On Fri, May 5, 2006 5:01 am, Nic wrote: > Hi Rabin > "Rabin Vincent" <[EMAIL PROTECTED]> writes: > >> On 5/5/06, Nic <[EMAIL PROTECTED]> wrote: >>> But /mydir/some.php doing: >>> >>>header("HTTP/1.1 404 Rubbish!!!") >>> >>> _never_ causes th

Re: [PHP] causing HTTP error status

2006-05-06 Thread Richard Lynch
On Fri, May 5, 2006 5:01 am, Nic wrote: > Hi Rabin > "Rabin Vincent" <[EMAIL PROTECTED]> writes: > >> On 5/5/06, Nic <[EMAIL PROTECTED]> wrote: >>> But /mydir/some.php doing: >>> >>>header("HTTP/1.1 404 Rubbish!!!") >>> >>> _never_ causes the error document to be picked up. >> >> That's right.

Re: [PHP] causing HTTP error status

2006-05-06 Thread Richard Lynch
On Fri, May 5, 2006 3:41 am, Nic wrote: > "Richard Lynch" <[EMAIL PROTECTED]> writes: > >> On Thu, May 4, 2006 8:50 am, Nic wrote: >>> I'm having trouble with setting HTTP error status from PHP4. >>> >>> The PHP docs say that if I have this : >>> >>> >> >> WILD GUESS!!! >> >> Try it with full pa

Re: [PHP] causing HTTP error status

2006-05-05 Thread M. Sokolewicz
Nic wrote: Hi Rabin "Rabin Vincent" <[EMAIL PROTECTED]> writes: On 5/5/06, Nic <[EMAIL PROTECTED]> 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 heade

Re: [PHP] causing HTTP error status

2006-05-05 Thread Nic
Hi Rabin "Rabin Vincent" <[EMAIL PROTECTED]> writes: > On 5/5/06, Nic <[EMAIL PROTECTED]> 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 he

Re: [PHP] causing HTTP error status

2006-05-05 Thread Rabin Vincent
On 5/5/06, Nic <[EMAIL PROTECTED]> 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

Re: [PHP] causing HTTP error status

2006-05-05 Thread Nic
"Richard Lynch" <[EMAIL PROTECTED]> writes: > On Thu, May 4, 2006 8:50 am, Nic wrote: >> I'm having trouble with setting HTTP error status from PHP4. >> >> The PHP docs say that if I have this : >> >> > > WILD GUESS!!! > > Try it with full pathname to /mydir, or perhaps without the leading > '/

Re: [PHP] causing HTTP error status

2006-05-04 Thread Richard Lynch
On Thu, May 4, 2006 8:50 am, Nic wrote: > I'm having trouble with setting HTTP error status from PHP4. > > The PHP docs say that if I have this : > > WILD GUESS!!! Try it with full pathname to /mydir, or perhaps without the leading '/' or some combination of more/fewer directories and/or slash

[PHP] causing HTTP error status

2006-05-04 Thread Nic
I'm having trouble with setting HTTP error status from PHP4. The PHP docs say that if I have this : ErrorDocument 400 /mydir/error.html then the script /mydir/test.php: will cause the page /mydir/error.html to be displayed. But that's not what I get. I just get the error header a