开发者

Overriding MIME Type in PHP

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 head开发者_Go百科er('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


I think you need to look at possibly the server configuration (or maybe a .htaccess file?) in this case. You won't be able to make a solution for this in PHP unless you can change the img src attribute.

Check this direct link to the image, it says 403 forbidden for me. Is it different for you?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜