莫名其妙的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
声明:
1.本站主要是为了记录工作、学习中遇到的问题,可能由于本人技术有限,内容难免有纰漏,一切内容仅供参考。
2.本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!
3.本站所有原创作品,包括文字、资料、图片、网页格式,转载时请标注作者与来源。
1.本站主要是为了记录工作、学习中遇到的问题,可能由于本人技术有限,内容难免有纰漏,一切内容仅供参考。
2.本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!
3.本站所有原创作品,包括文字、资料、图片、网页格式,转载时请标注作者与来源。
THE END

0

打赏

分享

二维码

海报