之前的项目都没有问题,重装系统后发现:Parse error: syntax error, unexpected $end.找了半天,竟然忘了GOOGLE一下..原来是这样哦,记录一下.
在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的全部内容,更多相关莫名其妙的Parse内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复