今天用帝国备份,提示错误:PHP Parse error: syntax error, unexpected $end
网上一查。原来是这样的,特在此记录一下。
在PHP文件中如果使用了<?来替代<?php标记PHP代码的开始,并且php.ini中的short_open_tag应该为On
short_open_tag = On 否则就会报异常:Parse error: syntax error, unexpected $end
转载请注明:白石头博客 » 莫名其妙的Parse error: syntax error, unexpected $end错误