This phpinfo () demonstrates the problem.
I pass the URL of the query string:
?qwerty=asdfg
As a result, I expect it to list these two PHP variables:
_REQUEST["qwerty"] asdfg
_GET["qwerty"] asdfg
And also this query string:
_SERVER["QUERY_STRING"] qwerty=asdfg
However, it does not work. None of these variables seem to be set at all.
I am using lighttpd. This may or may not be related to the problem, but my greengar.com-lighttpd.conf looks like this because I use WordPress for most domain pages:
url.rewrite += (
"^/(wp-.+).*/?" => "$0",
"^/(blog/wp-.+).*/?" => "$0",
"^/(.*.php)" => "$0",
"^/(.*.pdf)" => "$0",
"^/(.*.png)" => "$0",
"^/(.*.html)" => "$0",
"^/(.*.ico)" => "$0",
"^/(.*.gif)" => "$0",
"^/(.*.txt)" => "$0",
"^/(images).*/?" => "$0",
"^/(sitemap.xml)" => "$0",
"^/(xmlrpc.php)" => "$0",
"^/(.+)/?$" => "/index.php/$1"
)
Again, I don’t know for sure whether this is due to a problem.
My question is: why does PHP not see the query string?
And how to fix it?
Here's the normal phpinfo () that successfully sees the query string. This is done on another server running Apache.