I moved my website to another host. The previous php version is 5.2 and now is 5.3
When I login to my website, it shows the error:
Parse error: syntax error, unexpected T_GOTO, expecting T_STRING in /xx/xx/xx/xx on line xx
Following is the code, the first line is the error line:
function goto($URL= "Back",$Target="self") //the error line
{
if ($URL == "Back")
{
echo "<HTML>
<HEAD>
<TITLE> untitle </TITLE>
<meta http-equiv="Content-Type" content="text/html; charset={$this -> Charset}">
</HEAD>
<BODY>
";
echo "<Script Language="Javascript">history.go(-1)</Script>";
echo "
</body></html>";
}
elseif
How should I change my syntax? Thanks a lot!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…