Re: apache content negotiation and $_GET
| From: | Richard Lynch | Date: | Mon, 13 Aug 2007 19:22:28 +0000 |
| Subject: | Re: apache content negotiation and $_GET | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-260784@lists.php.net to get a copy of this message | ||
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?