Content-type not working in PHP

后端 未结 13 2171
时光说笑
时光说笑 2020-12-09 12:16

I have some issues with a PHP file that is not working properly. The Content-type does not get recieved by any browser at all. Firebug interprets the file as text/html inste

13条回答
  •  我在风中等你
    2020-12-09 12:42

    the reason is because the header function works only if it is the first one to be called!

    If you put an echo before, the content type automatically becomes text/html

    try to print a CSS code after the header to test if it actually works.

    Read this page for more infos

    EDIT: did you change your post ? :-)

提交回复
热议问题