Content-Type

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • johny10151981
    Top Contributor
    • Jan 2010
    • 1059

    Content-Type

    I am trying to set content-type bye php
    I added this code
    Code:
    header("Content-Type: text/html; charset=utf-8");
    but when i am checking header the result is

    Code:
    HTTP/1.1 200 OK
    Date: Fri, 20 Aug 2010 15:22:51 GMT
    Server: Apache
    X-Powered-By: PHP/5.1.6
    Expires: Thu, 19 Nov 1981 08:52:00 GMT
    Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
    Pragma: no-cache
    Connection: close
    Transfer-Encoding: chunked
    Content-Type: text/html
    What's with it? Does apache server mocking with me?
  • dlite922
    Recognized Expert Top Contributor
    • Dec 2007
    • 1586

    #2
    Works for me.

    Just right click the page in firefox and click page info.

    If still doesn't work, debug it. slim the code down piece by piece until you find what's causing the header change.

    Dan

    Comment

    Working...