954,561 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Parse error: syntax error, unexpected T_STRING

I get this error:
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/pixogeni/public_html/arcade/admin/commandcenter.php on line 46

Well this is line 46, I can't seem to figure out a fix for it...

if (isset($_GET['p']) && $_GET['p'] == "login") {


Any suggestions? :S
Thanks in advance :)

AnjX
Newbie Poster
2 posts since Oct 2008
Reputation Points: 10
Solved Threads: 0
 

Suggestion: check the previous line and make sure its statement was terminated correctly. The line if (isset($_GET['p'] && $_GET['p'] == "login"){} parses fine on my server.

scru
Posting Virtuoso
1,629 posts since Feb 2007
Reputation Points: 975
Solved Threads: 140
 

} else {
echo "This page requires authentication. Please login.


";
exit;
}
}

if (isset($_GET['p']) && $_GET['p'] == "login") {
if ($_POST['name'] != $reg_user) {
echo "Sorry, that username does not match. Use your browser back button to go back and try again.


";
exit;
} else if ($reg_pass != sha1($_POST['pass'].$regsalt)) {
echo "Sorry, that password does not match. Use your browser back button to go back and try again.


";
exit;
} else if ($_POST['name'] == $reg_user && sha1($_POST['pass'].$regsalt) == $reg_pass) {
setcookie('amcms3admin', $reg_pass);
header("Location: $_SERVER[PHP_SELF]");
} else {
echo "Sorry, you could not be logged in at this time. Refresh the page and try again.


";
}
}
?>

This page is not directly accessable.


Thats the area around it, I still don't see anything wrong though ....

AnjX
Newbie Poster
2 posts since Oct 2008
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You