Home > Uncategorized > Get HTTP arguments when using PHP as CGI

Get HTTP arguments when using PHP as CGI

December 17th, 2008 Leave a comment Go to comments

Normaly when you use PHP as CGI, $_GET and $_POST should work as usual.
But in certain configuration, they may not be set. In this case this code is the base to get args

foreach (split('&',$QUERY_STRING) as $tmp) {
$tmp2 = split('=',$tmp);
$$tmp2[0]=$tmp2[1];
}

Categories: Uncategorized Tags: ,
  1. No comments yet.
  1. No trackbacks yet.