Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';'
- by Tom
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