我是靠谱客的博主 专注衬衫,这篇文章主要介绍莫名其妙的Parse error: syntax error, unexpected $end,现在分享给大家,希望可以做个参考。

 

之前的项目都没有问题,重装系统后发现: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内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(45)

评论列表共有 0 条评论

立即
投稿
返回
顶部