Overriding MIME Type in PHP

Posted by Mr Carl on Stack Overflow See other posts from Stack Overflow or by Mr Carl
Published on 2010-06-10T18:34:41Z Indexed on 2010/06/10 18:42 UTC
Read the original article Hit count: 370

Filed under:
|
|

My site is requesting a remote image which is being transferred with the wrong MIME type. I was wondering how might I override it in PHP to tell it that it's an image? I can't use header('Content-Type') because the image is being used in a HTML document.

http://manga.justcarl.co.uk/N/Naruto/494/1 - one of the pages attempting to request an image... the image looks broken because it's trying to output it as html

© Stack Overflow or respective owner

Related posts about php

Related posts about image