|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-03-12 22:11 UTC] mike@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 15:00:02 2025 UTC |
Description: ------------ Cannot retrieve any value from $_GET eventhough the parameters entered appear correctly in $_SERVER['QUERY_STRING']. Reproduce code: --------------- #!/usr/local/bin/php <?php print ("Content-type: text/plain\r\n\r\n"); print ("foo is {$_GET['foo']}\r\n"); print ("GET array is \r\n"); print_r ($_GET); print ("Request array is \r\n"); print_r ($_REQUEST); print ("Server query string is \r\n"); print ($_SERVER['QUERY_STRING']); ?> Executed URL: http://localhost/cgi-bin/test.php?foo=bar Expected result: ---------------- foo is bar GET array is Array ( foo => bar ) Request array is Array ( foo => bar ) Server query string is foo=bar Actual result: -------------- foo is GET array is Array ( ) Request array is Array ( ) Server query string is foo=bar