I looked through php.net and couldnt find it...so what exactly does this line do/mean?
$evil_query = $QUERY_STRING . " " . $SERVER_PROTOCOL;
it's a line from a script that i found somewhere and i'm working on modifying it and i need to know what this does..it doesn't mean anything. some where else in that script you will fine what those stand for. and all it is doing is combining $QUERY_STRING & $SERVER_PROTOCOL to make 1 variable.
$QUERY_STRING = ?
$SERVER_PROTOCOL = ?$QUERY_STRING and $SERVER_PROTOCOL are both predifined
(Environment) varibales.
eg.$QUERY_STRING gives value of the URL after "?"
eg..<!-- m --><a class="postlink" href="http://www.yahoo.com?name=myname">http://www.yahoo.com?name=myname</a><!-- m --> it gives name=myname
As scott says the varible equals the value of that two variables which must be used anywhere else in the programe.Not to my knowledge they're not.
The predefined variables are:
$_SERVER['QUERY_STRING']
and
$_SERVER['SERVER_PROTOCOL'];well after doing some reading I have to say this.
SERVER_PROTOCOL and QUERY_STRING are predefined if php is setup as a cgi program.
other than that you have to use them as Torrent sugested. Other than that the only way to get them is if php was installed as a CGI program, not a ISAPI module
in fact the ISAPI module doesn't even list them in phpinfo(). only the cgi program does.
and if I remember right SERVER_PROTOCOL and QUERY_STRING by themselves are for perl as that is why they are only lsited as a cgi program.
$evil_query = $QUERY_STRING . " " . $SERVER_PROTOCOL;
it's a line from a script that i found somewhere and i'm working on modifying it and i need to know what this does..it doesn't mean anything. some where else in that script you will fine what those stand for. and all it is doing is combining $QUERY_STRING & $SERVER_PROTOCOL to make 1 variable.
$QUERY_STRING = ?
$SERVER_PROTOCOL = ?$QUERY_STRING and $SERVER_PROTOCOL are both predifined
(Environment) varibales.
eg.$QUERY_STRING gives value of the URL after "?"
eg..<!-- m --><a class="postlink" href="http://www.yahoo.com?name=myname">http://www.yahoo.com?name=myname</a><!-- m --> it gives name=myname
As scott says the varible equals the value of that two variables which must be used anywhere else in the programe.Not to my knowledge they're not.
The predefined variables are:
$_SERVER['QUERY_STRING']
and
$_SERVER['SERVER_PROTOCOL'];well after doing some reading I have to say this.
SERVER_PROTOCOL and QUERY_STRING are predefined if php is setup as a cgi program.
other than that you have to use them as Torrent sugested. Other than that the only way to get them is if php was installed as a CGI program, not a ISAPI module
in fact the ISAPI module doesn't even list them in phpinfo(). only the cgi program does.
and if I remember right SERVER_PROTOCOL and QUERY_STRING by themselves are for perl as that is why they are only lsited as a cgi program.