No lightbulbs are going, but something confuses me. In the $SERVER[REDIRECT_QUERY_STRING] it shows the query string I want to see, however in %SERVER[QUERY_STRING] it shows the filename of the file calling it!
I called URL:
http://127.0.0.1/XML-RPC/XML%20and%20PHP/pablo
where pablo is what i want to be the variable.
Here are the results regardless:
Array
(
[COMSPEC] => C:\WINDOWS\system32\cmd.exe
[DOCUMENT_ROOT] => c:/program files/easyphp1-7/www
[HTTP_ACCEPT] => /
[HTTP_ACCEPT_ENCODING] => gzip, deflate
[HTTP_ACCEPT_LANGUAGE] => en-gb
[HTTP_CONNECTION] => Keep-Alive
[HTTP_HOST] => 127.0.0.1
[HTTP_USER_AGENT] => Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
[PATH] => C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\Python22;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files\Panda Software\Panda Platinum Internet Security\
[REDIRECT_QUERY_STRING] => user=pablo
[REDIRECT_STATUS] => 200
[REDIRECT_URL] => /XML-RPC/XML and PHP/pablo
[REMOTE_ADDR] => 127.0.0.1
[REMOTE_PORT] => 1266
[SCRIPT_FILENAME] => c:/program files/easyphp1-7/www/xml-rpc/xml and php/test2.php
[SERVER_ADDR] => 127.0.0.1
[SERVER_ADMIN] => admin@localhost
[SERVER_NAME] => 127.0.0.1
[SERVER_PORT] => 80
[SERVER_SIGNATURE] => Apache/1.3.27 Server at 127.0.0.1 Port 80
[SERVER_SOFTWARE] => Apache/1.3.27 (Win32) PHP/4.3.3
[SystemRoot] => C:\WINDOWS
[WINDIR] => C:\WINDOWS
[GATEWAY_INTERFACE] => CGI/1.1
[SERVER_PROTOCOL] => HTTP/1.1
[REQUEST_METHOD] => GET
[QUERY_STRING] => user=test2.php
[REQUEST_URI] => /XML-RPC/XML%20and%20PHP/pablo
[SCRIPT_NAME] => /xml-rpc/xml and php/test2.php
[PATH_TRANSLATED] => c:/program files/easyphp1-7/www/xml-rpc/xml and php/test2.php
[PHP_SELF] => /xml-rpc/xml and php/test2.php
)