变量传递给脚本以填充html< img src =" MyScript.Php?ImageName = KnownGoodData" > [英] Variable passing to script to fill html <img src="MyScript.Php?ImageName=KnownGoodData" >

查看:48
本文介绍了变量传递给脚本以填充html< img src =" MyScript.Php?ImageName = KnownGoodData" >的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


我正在尝试执行上述操作以处理图像并将

结果返回给html图像控件。它失败了,我的主要嫌疑人要么是我要传入的变量 - 图像名称 - 用于处理,要么返回

数据已完成(或不是这个案例可能是通过imagejpeg($ img)在

脚本中,在标题之后(Content-type:image / jpeg)。


任何见解都是最受欢迎的,特别是调试技巧和指向资源的指示,以帮助我更好地感受这个复杂的

景观。

非常感谢,


格雷戈里

Hello,

I''m trying to do the above in order to process an image and return the
result to an html image control. It fails and my key suspects are either
the variable that I''m passing in - ImageName - for processing, or the return
data which is done (or not as the case may be) by imagejpeg($img) in the
script, after header("Content-type: image/jpeg").

Any insights would be most welcome, especially debugging techniques and a
pointer to resources to help me get a better feel for this complex
landscape.

Many thanks,

Gregory

推荐答案

img)

脚本,在标题之后(Content-type:image / jpeg)。


任何见解都是最受欢迎的,尤其是调试技巧和

指向资源的指针,帮助我更好地感受这个复杂的

景观。


非常感谢,


Gregory
img) in the
script, after header("Content-type: image/jpeg").

Any insights would be most welcome, especially debugging techniques and a
pointer to resources to help me get a better feel for this complex
landscape.

Many thanks,

Gregory


Gregory< php at neutrino-soft @@@ ware.co.uk>写道:
Gregory <php at neutrino-soft @@@ ware.co.uk> wrote:
我正在尝试执行上述操作以处理图像并将
结果返回到html图像控件。它失败了,我的主要嫌疑人要么是我传入的变量 - 图像名称 - 要进行处理,要么返回数据,这是由imagejpeg完成(或不是视情况而定)
I''m trying to do the above in order to process an image and return the
result to an html image control. It fails and my key suspects are either
the variable that I''m passing in - ImageName - for processing, or the
return data which is done (or not as the case may be) by imagejpeg(


img)
在标题后面的(> Content-type:image / jpeg")。
img)
in the
script, after header("Content-type: image/jpeg").




您好Gregory,


如果您可以发布相关代码和错误消息会有所帮助。


刺入黑暗:


你使用



Hi Gregory,

It would help if you could post the relevant code and error messages.

Stab in the dark:

Do you use


这篇关于变量传递给脚本以填充html&lt; img src =&quot; MyScript.Php?ImageName = KnownGoodData&quot; &GT;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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