Re: [PHP] Apache query error affecting PHP?

2002-05-28 Thread Weston Houghton


How silly of me not to think of this problem in the first place. It is not
an error in the server, but in the browser. I didn't bother testing it in
any other browser initially. So this problem only occurs in MSIE 5.1.4 under
MacOS X.

Ugh, thank you for showing I am somewhat silly in this one (but not fully
crazy). Now I have to try to convince Microsoft that they have a bug... ooh
fun.

Thanks for the reply here, it seems my mail from the apache list is not
coming through, so I hadn't seen the response there.

Cheers,
Wes


> Weston Houghton <[EMAIL PROTECTED]> wrote:
>> Apache will actually return the directory listing of the assets/
>> directory (assuming you have directory listing enabled, otherwise it
>> returns the standard forbidden error). It does not seem to matter
>> what the actual variable name following the "?" is. However,
> 
> Both URLs display the images as expected from here.
> 
>> shouldn't apache ignore anything following the "?" as it should
>> really just be a part of the query string variables?
> 
> If you are requesting a static resource (e.g. an image file) Apache will
> ignore the query string.
> 
>> This really seems to be buggering my attempt at passing directories in
>> variables, but it seems that a lot of scripts must do this, am I just
>> doing something stupid?
> 
> I gave the same answer when you asked on the httpd mailing list. Have I
> misunderstood your problem?
> 
> --
> Stuart
> 


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




Re: [PHP] Apache query error affecting PHP?

2002-05-28 Thread Stuart Dallas

Weston Houghton <[EMAIL PROTECTED]> wrote:
> Apache will actually return the directory listing of the assets/
> directory (assuming you have directory listing enabled, otherwise it
> returns the standard forbidden error). It does not seem to matter
> what the actual variable name following the "?" is. However,

Both URLs display the images as expected from here.

> shouldn't apache ignore anything following the "?" as it should
> really just be a part of the query string variables?

If you are requesting a static resource (e.g. an image file) Apache will
ignore the query string.

> This really seems to be buggering my attempt at passing directories in
> variables, but it seems that a lot of scripts must do this, am I just
> doing something stupid?

I gave the same answer when you asked on the httpd mailing list. Have I
misunderstood your problem?

--
Stuart


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




[PHP] Apache query error affecting PHP?

2002-05-28 Thread Weston Houghton


Hello...

I'm wondering if I have found an oddity in httpd. I'm currently writing a
PHP directory listing system. I am pretty sure that this is not a php issue,
but I have not been able to test it on a httpd install sans php, but it can
be seen when requesting an image file, which should not invoke the PHP
parser.

So here it is, if you try hitting the URL:
http://www.anapraxis.com/assets/global/en_solutions.gif?element=../../../

Or if you would like to see it on the httpd site:
http://httpd.apache.org/images/httpd_logo_wide.gif?element=../../

Apache will actually return the directory listing of the assets/ directory
(assuming you have directory listing enabled, otherwise it returns the
standard forbidden error). It does not seem to matter what the actual
variable name following the "?" is. However, shouldn't apache ignore
anything following the "?" as it should really just be a part of the query
string variables?

This really seems to be buggering my attempt at passing directories in
variables, but it seems that a lot of scripts must do this, am I just doing
something stupid?

Thanks,
Wes


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