Parse error: Syntax error, unexpected end of file in my PHP code

后端 未结 16 1997
孤城傲影
孤城傲影 2020-11-22 05:27

I got an error:

Parse error: syntax error, unexpected end of file in the line

With this code:


    

        
16条回答
  •  傲寒
    傲寒 (楼主)
    2020-11-22 05:46

    To supplement other answers, it could also be due to the auto-minification of your php script if you are using an ftp client like FileZilla. Ensure that the transfer type is set to Binary and not ASCII or auto. The ASCII or auto transfer type can minify your php code leading to this error.

提交回复
热议问题