I'm having trouble with this PHP script in Internet Explorer/Win7. It works fine in Firefox/Win7, Chrome/Win7, Firefox/Linux and Chrome/Linux.
You can see a working example at http://hugh.tekcities.com/hugh/foo.php
If I use image/png and use a png file or image/gif and use a gif file, it works in all tested browsers including Internet Explorer. It is only the jpg's that have problems.
What it does is try to download the file instead of display the image. Not only that, but it thinks the filename is foo.php (or whatever the name of the script happens to be). But then it downloads the image (not the php file).