Current Page: 1 of 1
Results 1 - 4 of 4
11 years ago
Warren
The $_SERVER array of the script in cgi-bin is included in my original post, look for [_SERVER] => Array ( .... ). Here's the output when the same script is in \www. Note that the $_GET array now has values. Cheers, Warren Array ( [_GET] => Array ( => cat => jim ) [_POST] => Array ( ) [_COOKIE] => Array ( ) [_FILES] => Array ( ) [_ENV] => Array ( ) [_REQUEST] =>
Forum: WampServer English
11 years ago
Warren
Some more data. If the PHP script is in C:\wamp\www, then it works and fills in $_GET. If the same script is in C:\wamp\bin\apache\apache2.2.22\cgi-bin then the $_GET array is not filled in. OK, so I will stick with the scripts in the \www directory for now, but I'd still like to know why there is a difference. Cheers, Warren
Forum: WampServer English
11 years ago
Warren
I originally used $_GET, but it was empty. I am printing out $GLOBALS just to see what variables do have values. Note that it shows: => fred=cat&dog=jim [_GET] => Array ( ) which means that $QUERY_STRING has something in it, but $_GET is an empty array. I can't work out how $_GET can be empty when $QUERY_STRING has a value. Thanks, Warren
Forum: WampServer English
11 years ago
Warren
I must be doing something wrong! I have a simple CGI script called fred.php, placed in C:\wamp\bin\apache\apache2.2.22\cgi-bin. Code is: #!php <?php echo "Content-Type: text/html\n\n"; echo "<html><head></head><body>\n"; print_r($GLOBALS); echo "</body></html>\n"; ?> The $_GET array isn't being filled in,
Forum: WampServer English
Current Page: 1 of 1