Re: [PHP] apache content negotiation and $_GET

2007-08-14 Thread Per Jessen
Stut wrote:

 Actually it suggests exactly that. Apache is giving PHP the query
 string, and PHP does nothing to it before it puts it in the $_SERVER
 variable. So this basically means that when you use the type-map
 Apache is not populating the query string variable.
 
 In short, I'm 5-9's% certain it's Apache that's throwing it away.

FYI - http://issues.apache.org/bugzilla/show_bug.cgi?id=33112


/Per

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



Re: [PHP] apache content negotiation and $_GET

2007-08-13 Thread Tijnema
On 8/13/07, Per Jessen [EMAIL PROTECTED] wrote:
 All,

 I've got a weird issue concerning $_GET and apaches content negotiation.

 situation one:

 files in htdocs/:

 phpinfo.phtml.en  (all it does is call phpinfo()).
 phpinfo.html - apache type-map

 if I load URL = https://server/phpinfo?klop=99, I see no _GET variables
 listed.  (with the URL, apache will pick the phpinfo.html file, treat
 it as a type-map and load phpinfo.phtml.en)

 if instead I skip the content negotation, and use URL =
 https://server/phpinfo.phtml.en?klop=99, the $_GET variable is
 available.

 Any suggestions?


 thanks,
 Per Jessen, Zurich

This has nothing to do with PHP, and there's only a very little chance
you get a successfull result here.
Your Apache type-map probably just doesn't take the $_GET variables
with it, but don't ask me how to fix ;) I can provide a PHP solution
for it ;)


Tijnema
-- 
Vote for PHP Color Coding in Gmail! - http://gpcc.tijnema.info

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



Re: [PHP] apache content negotiation and $_GET

2007-08-13 Thread Per Jessen
Tijnema wrote:

 This has nothing to do with PHP, and there's only a very little chance
 you get a successfull result here.
 Your Apache type-map probably just doesn't take the $_GET variables
 with it,

Yeah, that is possible - I was wondering whether to blaim PHP or Apache. 
I just thought there was litte risk of apache throwing away the
querystring during content-negotiation.  

I can tell that the $_SERVER[query-string] variable is not set when
using the type-map, but it when I go straight to a specific file.  That
does seem to suggest apache is at fault.


/Per

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



Re: [PHP] apache content negotiation and $_GET

2007-08-13 Thread Stut

Per Jessen wrote:

Tijnema wrote:


This has nothing to do with PHP, and there's only a very little chance
you get a successfull result here.
Your Apache type-map probably just doesn't take the $_GET variables
with it,


Yeah, that is possible - I was wondering whether to blaim PHP or Apache. 
I just thought there was litte risk of apache throwing away the
querystring during content-negotiation.  


I can tell that the $_SERVER[query-string] variable is not set when
using the type-map, but it when I go straight to a specific file.  That
does seem to suggest apache is at fault.


Actually it suggests exactly that. Apache is giving PHP the query 
string, and PHP does nothing to it before it puts it in the $_SERVER 
variable. So this basically means that when you use the type-map Apache 
is not populating the query string variable.


In short, I'm 5-9's% certain it's Apache that's throwing it away.

-Stut

--
http://stut.net/

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



Re: [PHP] apache content negotiation and $_GET

2007-08-13 Thread Richard Lynch
On Mon, August 13, 2007 4:45 am, Per Jessen wrote:
 I've got a weird issue concerning $_GET and apaches content
 negotiation.

 situation one:

 files in htdocs/:

 phpinfo.phtml.en  (all it does is call phpinfo()).
 phpinfo.html - apache type-map

 if I load URL = https://server/phpinfo?klop=99, I see no _GET
 variables
 listed.  (with the URL, apache will pick the phpinfo.html file, treat
 it as a type-map and load phpinfo.phtml.en)

 if instead I skip the content negotation, and use URL =
 https://server/phpinfo.phtml.en?klop=99, the $_GET variable is
 available.

 Any suggestions?

PHP pretty much just blindly passes on whatever is in the REQUEST_URI
into $_GET.

So the GET data isn't surviving the type-map forwarding.

So your question boils down to:

Why isn't Apache's type-map propagating the GET arguments?

This question has no PHP in it;  You'll probably find the answer
faster/better in an Apache milieu.

-- 
Some people have a gift link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

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