Ask a Question related to PHP Development, Design and Development.
-
Bruno Carneiro da Cunha #1
script-generated images and internet explorer
Hi all,
I wrote a small script that is supposed to get an image from a database and
return it to the user. The relevant part looks like this:
<?php
[...]
header('Content-type: image/jpeg');
header('Content-Disposition: inline; filename=".$image_name".);
print $image;
?>
This works fine in mozilla (and I guess netscape as well), but IE displays
the image as bitmap, regardless which instructions I send out to it. It
actually seems to decompress the jpeg back to bitmap before displaying,
because even if I try to save the file as jpeg it writes it in bitmap. I
though that these headers were pretty standard, and I am really puzzled as
to why IE doesn't take them into consideration.
Is there any way around this problem? T.I.A.
B.
Bruno Carneiro da Cunha Guest
-
Internet Explorer Script Error
Hi - On some (many!) web pages I get "Internet Explorer Script Error" an error has occured in the script..." Then I get: Line: 2 Character: 7... -
Contribute 4 & Internet Explorer Script Error
I have built a website in GoLive on a MAC for a client who is using Contribute 4 on a PC to edit their pages. They are coming up with a script error... -
BODY ONLOAD() INTERNET EXPLORER 6.0.2 SCRIPT ERROR
Hi all, Can you please help me out with this???? i've been using body onload() for ages but since i changed my internet explorer (to 6.02) and OS... -
Prove internet package for Microsoft Internet Explorer
Grow up little nerdy boy. Infecting people's machines is so passé, so why not do something productive like invade North Korea. Tony. -
Alvaro G Vicario #2
Re: script-generated images and internet explorer
*** Bruno Carneiro da Cunha wrote/escribió (Sun, 02 Nov 2003 19:11:11 GMT):
I guess it's a completely different problem. Delete Temporary Internet> This works fine in mozilla (and I guess netscape as well), but IE displays
> the image as bitmap, regardless which instructions I send out to it. It
> actually seems to decompress the jpeg back to bitmap before displaying,
> because even if I try to save the file as jpeg it writes it in bitmap.
Files and try again.
--
--
-- Álvaro G. Vicario - Burgos, Spain
--
Alvaro G Vicario Guest
-
Kevin Thorpe #3
Re: script-generated images and internet explorer
Bruno Carneiro da Cunha wrote:
IE is very funny about things like this. It seems to selectively ignore> Hi all,
>
> I wrote a small script that is supposed to get an image from a database and
> return it to the user. The relevant part looks like this:
>
> <?php
> [...]
> header('Content-type: image/jpeg');
> header('Content-Disposition: inline; filename=".$image_name".);
>
> print $image;
> ?>
>
> This works fine in mozilla (and I guess netscape as well), but IE displays
> the image as bitmap, regardless which instructions I send out to it. It
> actually seems to decompress the jpeg back to bitmap before displaying,
> because even if I try to save the file as jpeg it writes it in bitmap. I
> though that these headers were pretty standard, and I am really puzzled as
> to why IE doesn't take them into consideration.
>
> Is there any way around this problem? T.I.A.
>
mime types in favour of file extensions.
Try linking to your image script as follows:
<img src="yourscript.php/image.jpg">
which sometimes helps to confuse IE into doing things properly.
Kevin Thorpe Guest
-
John Dunlop #4
Re: script-generated images and internet explorer
Kevin Thorpe wrote:
Indeed IE is broken. For anyone masochistic enough to wade through> IE is very funny about things like this. It seems to selectively ignore
> mime types in favour of file extensions.
it, Wacky Will's even written up its misbehaviour. The de rigueur
microfonts and technobabble come as standard, of course.
[url]http://msdn.microsoft.com/workshop/networking/moniker/overview/appendix_a.asp[/url]
--
Jock
John Dunlop Guest



Reply With Quote

