1. 程式人生 > >PHP關於syntax error語法錯誤的問題(Parse error: syntax error, unexpected end of file in xxxxxxxx)

PHP關於syntax error語法錯誤的問題(Parse error: syntax error, unexpected end of file in xxxxxxxx)

在php程式出現類似

Parse error: syntax error, unexpected end of file in xxxxxxxx  on line xx

的錯誤。

如果發現php的語法本身沒有什麼錯誤。就有可能是使用了短標籤,例如:

<? }?>

這種問題的解決方案是:

可以在php.ini中設定short_open_tag = On

--------------------- 本文來自 天南韓立 的CSDN 部落格 ,全文地址請點選:https://blog.csdn.net/u014175572/article/details/52798684?utm_source=copy