| | |
Parse error: syntax error, unexpected T_STRING
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Oct 2008
Posts: 2
Reputation:
Solved Threads: 0
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?
Thanks in advance
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?

Thanks in advance
•
•
Join Date: Oct 2008
Posts: 2
Reputation:
Solved Threads: 0
} else {
echo "<p>This page requires authentication. Please login.</p>";
exit;
}
}
if (isset($_GET['p']) && $_GET['p'] == "login") {
if ($_POST['name'] != $reg_user) {
echo "<p>Sorry, that username does not match. Use your browser back button to go back and try again.</p>";
exit;
} else if ($reg_pass != sha1($_POST['pass'].$regsalt)) {
echo "<p>Sorry, that password does not match. Use your browser back button to go back and try again.</p>";
exit;
} else if ($_POST['name'] == $reg_user && sha1($_POST['pass'].$regsalt) == $reg_pass) {
setcookie('amcms3admin', $reg_pass);
header("Location: $_SERVER[PHP_SELF]");
} else {
echo "<p>Sorry, you could not be logged in at this time. Refresh the page and try again.</p>";
}
}
?>
This page is not directly accessable.
Thats the area around it, I still don't see anything wrong though ....
echo "<p>This page requires authentication. Please login.</p>";
exit;
}
}
if (isset($_GET['p']) && $_GET['p'] == "login") {
if ($_POST['name'] != $reg_user) {
echo "<p>Sorry, that username does not match. Use your browser back button to go back and try again.</p>";
exit;
} else if ($reg_pass != sha1($_POST['pass'].$regsalt)) {
echo "<p>Sorry, that password does not match. Use your browser back button to go back and try again.</p>";
exit;
} else if ($_POST['name'] == $reg_user && sha1($_POST['pass'].$regsalt) == $reg_pass) {
setcookie('amcms3admin', $reg_pass);
header("Location: $_SERVER[PHP_SELF]");
} else {
echo "<p>Sorry, you could not be logged in at this time. Refresh the page and try again.</p>";
}
}
?>
This page is not directly accessable.
Thats the area around it, I still don't see anything wrong though ....
Last edited by AnjX; Oct 26th, 2008 at 7:38 pm.
![]() |
Similar Threads
- Parse error: syntax error, unexpected T_STRING (PHP)
- Parse error: syntax error, unexpected T_STRING in E:\Program Files\wamp\www\practice\ (PHP)
- Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' (PHP)
- emergency please help fo Parse error: syntax error, unexpected T_STRING (PHP)
- syntax error, unexpected T_STRING (PHP)
- "syntax error, unexpected T_STRING"...? (PHP)
- Parse error: syntax error, unexpected T_STRING in c:/.......... (PHP)
- Parse error please help (PHP)
- unexpected T_STRING (PHP)
- Unexpected T_STRING? (PHP)
Other Threads in the PHP Forum
- Previous Thread: Code condensation for faster loading
- Next Thread: Help with array
| Thread Tools | Search this Thread |
.htaccess ajax apache api array beginner binary bounce broken cakephp checkbox class cms code cron curl database date directory display domain dynamic echo email error errorlog file files folder form format forms function functions google href htaccess html image include insert integration interactive ip java javascript joomla limit link load login loop mail malfunctioning masterthesis menu mlm mod_rewrite multiple mysql nodes oop paypal pdf php problem query radio ram random recursion reference regex remote return script search server sessions sms soap source space sql syntax system table tutorial unset update upload url validation validator variable video web websitecontactform xml youtube






