今天用帝国备份,提示错误: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
今天用帝国备份,提示错误: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
本站的发展离不开您的支持,请在解决问题后再考虑是否为本站打赏或捐助。