Jump to content

Syntax error


unluckyphpbeginner

Recommended Posts

Hi, everyone!

First I wanna say that I'm really beginner at php.

Anyway, I've got this code:

<?php
Header("Location: <a class="linkifierplus" href="http://sitename.com">http://sitename.com</a>");

$handle = fopen("list.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 I cannot pass the syntax checking test. Every time I've got this error:"Parse error: syntax error, unexpected T_STRING in CODE on line 2 Errors parsing CODE." So, I guess that something is wrond with live 2, but what?

Link to comment
https://forums.phpfreaks.com/topic/190535-syntax-error/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.