PHP Parse error: syntax error, unexpected end of file in

本地编好代码后传到服务器啥都不显示,心里极度不爽。

打开php.ini /etc/php5/apache2/php.ini

display_errors = Off 改为 display_errors = On 开启报错。

结果一运行出来个Parse error: syntax error, unexpected end of file in 。

我呵呵一笑,原来是PHP短标记没开,去死吧。

short_open_tag = Off 改为 short_open_tag = On 。

sudo /etc/init.d/apache2 restart

PHP Parse error: syntax error, unexpected end of file in

https://ldsun.com/2015/04/02/PHP-Parse-error-syntax-error-unexpected-end-of-file-in/

Author

Ludis

Posted on

2015-04-02

Updated on

2015-04-02

Licensed under

Comments