PNG files not showing in PHP download script
like always ... IE should be having some stupid rules to make coders work more ...
i am using a PHP class to server files from the server (ex : http://site/downwload.php?id=5)
will download file that has id=5 ...
everything works just gr8 ... except PNG images 开发者_JAVA技巧on IE !!! works perfect on all other browsers ...
Any clue guys ?
Thank you .
Do you send any header that with content type? I can be a problem if you only send the data without the content type header.
header('Content-Type: image/png');
readfile('path/to/myimage.png');
Found it ,
IE doesn't like the Content-Range
and Content-Length
headers for png images ...
精彩评论