How to setup content type header using PHP

August 5, 2008

Content type header is very important for SEO resons, but some browser eg: Mozilla don’t accept content-type correctly when writed by regular method.

Hence you have to set content type using server setting also (eg using PHP). Server side setting will allow you to set default content type and encoding for all documents.

You may also set content type and encoding document wise using server side scripts. By using PHP, you could add this line at the very top of script:

header (’Content-type: text/html; charset=iso-8859-1?);


Comments »

The URI to TrackBack this entry is: http://priyooh.blogsome.com/2008/08/05/how-to-setup-content-type-header-using-php/trackback/

No comments yet.

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>



Anti-spam measure: please retype the above text into the box provided.