PHP include() before doctype, causing a white space

前端 未结 5 1964
無奈伤痛
無奈伤痛 2021-01-20 13:37

I have a website with a white space problem. I am including a few files before the doctype and this is causing a white space to be outputted.

After searching I have

5条回答
  •  一向
    一向 (楼主)
    2021-01-20 14:22

    You don't have to remove the ?>. Just the whitespace after it. Your code should look like this:

    ....
    

提交回复
热议问题