Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';'
Posted
by Tom
on Stack Overflow
See other posts from Stack Overflow
or by Tom
Published on 2010-03-23T19:27:43Z
Indexed on
2010/03/23
19:33 UTC
Read the original article
Hit count: 369
php
Hi, I'm really confused as to why this is kicking up an error?
$admin = substr($_SERVER['REQUEST_URI'], 0, 7);
$account = substr($_SERVER['REQUEST_URI'], 0, 9);
if($admin != '/admin/' || $account != '/account/')
{
}
It is giving this error Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' Why is it doing this?
Thanks Tom
© Stack Overflow or respective owner