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

后端 未结 16 1910
孤城傲影
孤城傲影 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:30

    I had the same error, but I had it fixed by modifying the php.ini file.

    Find your php.ini file see Dude, where's my php.ini?

    then open it with your favorite editor.

    Look for a short_open_tag property, and apply the following change:

    ; short_open_tag = Off ; previous value
    short_open_tag = On ; new value
    

提交回复
热议问题