PHP code only works when enclosed in short open tags
问题 I have a PHP file which was working fine until last tuesday, I last-edited it a month ago so I don't know what made it stop working. I changed the file to just echo a string: <?php echo "5"; ?> but it returns: Parse error : syntax error, unexpected '"5"' (T_CONSTANT_ENCAPSED_STRING) in file.php on line 1 Then just store a variable: <?php $var = 2+3; ?> And it returns: Parse error : syntax error, unexpected '$var' (T_VARIABLE) in file.php on line 1 There are no whitespaces, everything you see