I have this error:
Parse error: syntax error, unexpected T_STRING in
/home/u1/public_html/scripts/easypanel.php on line 192
When i run that on the local it’s work, but on the real server it’s not:
line 192 is:
if(isset($_POST['send_pass']))
{
if($_POST['post_password'] == $password)
{
goto content;# = line 192
}
else
{
echo '<div class="box error">password incorrect</div><br>';
}
}
...
content:
echo $content;
What’s the problem?
You said your server version is 5.2. Thats what creating the problem. “goto” was introduced in 5.3. So you can either ask for an upgrade of the server version or stop using goto altogether because 5.2 does not support it. It works fine on local because on local you are using PHP version 5.3