/* Filename: simulate-cgi-query.text
* Description: Echo a cgi variable
* Usage:
* (1) Set the QUERY_STRING environment variable in a shell,
* - e.g. under csh do: setenv QUERY_STRING "test=My Name"
* - under MSDOS: set QUERY_STRING "test=oullla" (maybe, not tested)
* (2) execute this script
* ELSE (and better) do both at the same time:
* - e.g. under csh do:
* env QUERY_STRING="test=Oh MY" php simulate-cgi-query.text
* - under bash:
* QUERY_STRING="test=TRY" php simulate-cgi-query.text
*/
if( isset($test) != 0 ) {
echo("test: $test\n");
} else {
echo("test: empty\n");
}
?>