IE没有显示PHP生成的图像,但Firefox确实如此。 [英] IE not showing PHP-generated images, but Firefox does.

查看:69
本文介绍了IE没有显示PHP生成的图像,但Firefox确实如此。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个由PHP脚本生成的图像 -

我没有编写代码 - 而且图像本身就是在

数据库。


我发现图像在IE7和FF2中的显示方式之间存在很大差异



例如for< IMG SRC =" image.php?param = foo"> ;.


即使它们在Firefox中显得很好但在IE浏览器中显示为
什么都没有出现。


任何人都可以告诉我如何使这项工作

以及这是否是浏览器问题,PHP问题,
或什么?


I have an image being generated by a PHP script--
I didn''t write the code-- and the image itself is in a
database.

I''ve discovered that there is a big discrepancy
between how the images appear in IE7 and FF2,
e.g. for <IMG SRC="image.php?param=foo">.

Namely, they appear just fine in Firefox but
in IE nothing appears at all.

Can anyone tell me know how to make this work
and whether this is a browser issue, a PHP issue,
or what?

推荐答案

ur ******* @ yahoo.com 写道:

我有一个由PHP脚本生成的图像 -

我没有编写代码 - 图像本身位于

数据库中。


我''我发现在IE7和FF2中图像的显示方式之间存在很大的差异



例如for< IMG SRC =" image.php?param = foo"> ;.


即使它们在Firefox中显得很好但在IE浏览器中显示为
什么都没有出现。


任何人都可以告诉我如何使这项工作

以及这是否是浏览器问题,PHP问题,
或什么?
I have an image being generated by a PHP script--
I didn''t write the code-- and the image itself is in a
database.

I''ve discovered that there is a big discrepancy
between how the images appear in IE7 and FF2,
e.g. for <IMG SRC="image.php?param=foo">.

Namely, they appear just fine in Firefox but
in IE nothing appears at all.

Can anyone tell me know how to make this work
and whether this is a browser issue, a PHP issue,
or what?



如果没有看到php脚本,我会说这是浏览器问题。


-


// Aho

Without seeing the php-script, I would say it''s a browser issue.

--

//Aho


Scripsit ur ******* @ yahoo.com
Scripsit ur*******@yahoo.com:

我发现有一个很大的差异

介于IE7和FF2中的图像之间,

例如for< IMG SRC =" image.php?param = foo">。
I''ve discovered that there is a big discrepancy
between how the images appear in IE7 and FF2,
e.g. for <IMG SRC="image.php?param=foo">.



您可以从使用有效标记开始。


验证后,发布URL。

You could start from using valid markup.

After validating, post the URL.


也就是说,它们在Firefox中看起来很好但是IE中没有任何内容。
Namely, they appear just fine in Firefox but
in IE nothing appears at all.



标记或图像数据出现问题。


要获得更具体的帮助,请给出我们更具体的数据。

There''s something wrong in your markup or in your image data.

To get more specific help, give us more specific data.


任何人都可以告诉我如何使这项工作

以及这是否是浏览器问题,PHP问题,

还是什么?
Can anyone tell me know how to make this work
and whether this is a browser issue, a PHP issue,
or what?



浏览器不知道数据是来自PHP脚本还是来自

astatic文件或来自响应HTTP请求的猴子。


-

Jukka K. Korpela(Yucca)
http://www.cs.tut.fi/~jkorpela/

A browser does not know whether the data comes from a PHP script or from
a "static" file or from a monkey that responds to HTTP requests.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/


也许你应该在标题中设置Content-type。
Maybe you should set Content-type in header.


这篇关于IE没有显示PHP生成的图像,但Firefox确实如此。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆