图像和文字:如何看待差异 [英] Image and text: howto see the difference
问题描述
根据我是否获得某个图片或某个网址的文字,我想要做一些不同的事情。
。我事先不知道是否会得到一张图片
或一个文字。
这是一个返回图片的网址:
<一个相对= nofollow的 href =http://indicator.amessage.info/indicator.php?param1=cobnet%40jabber.org&param2=bounce&param3=http%3A%2F %2Fstudent.ugent.be%2Fastrid%2Fpics%2Fjabber%2F&放大器;放大器; param4 = .PNG目标= _blank> http://indicator.amessage.info/indic...mp;param4=.png
这是一个返回文本的文本:
http://indicator.amessage.info/indic...mp;param4=.png
我怎么能看到2与PHP代码之间的区别?
希望某人可以让我离开这个,
问候,
Mattias
Hi,
Depending on if I get an image or a text of a certain URL, I want to do
something different. I don''t know in advance whether I''ll get an image
or a text.
This is a URL that returns an image:
http://indicator.amessage.info/indic...mp;param4=.png
This is one that returns text:
http://indicator.amessage.info/indic...mp;param4=.png
How could I see the difference between the 2 with PHP code?
Hoping that sb. can get me out of this,
greetings,
Mattias
推荐答案
Mattias Campe写道:
Mattias Campe wrote:
取决于我是否获得某个图片或某个网址的文字,我想做什么
有些不同。我事先并不知道是否会得到图片
或文字。
这是一张返回图片的网址:
http://indicator.amessage.info/indic...mp;param4=.png
http://indicator.amessage.info/indic。 ..mp; param4 = .png
我怎么能看到2与PHP代码之间的区别?
Hi,
Depending on if I get an image or a text of a certain URL, I want to do
something different. I don''t know in advance whether I''ll get an image
or a text.
This is a URL that returns an image:
http://indicator.amessage.info/indic...mp;param4=.png
This is one that returns text:
http://indicator.amessage.info/indic...mp;param4=.png
How could I see the difference between the 2 with PHP code?
使用fsockopen和正则表达式在标题中搜索Content-Type。
问候,
Shawn
-
肖恩Wilson
sh***@glassgiant.com
http://www.glassgiant.com
链接看起来一样,唯一区别我有两个o在coobnet我的第二个...... b ....如果是这样,你可以做if(
The link look the same, only difference i there is two "o" in coobnet i nthe
second .. ???.... if so, you can do if (
_GET [" param1"] ==
" coobnet%40jabber.org"){...} else {}
如果只是一个错误,那么请使用Content-Type in header();
Savut
" Mattias Campe" <马********* @ UGent.be>在消息中写道
news:bq ********** @ gaudi2.UGent.be ...
_GET["param1"] ==
"coobnet%40jabber.org") {...} else {}
If it was just a mistaping then use the Content-Type in header();
Savut
"Mattias Campe" <Ma******************************@UGent.be> wrote in message
news:bq**********@gaudi2.UGent.be...
根据我是否获得某个图片或某个网址的文字,我想做一些与众不同的事情。我事先并不知道是否会得到图片
或文字。
这是一张返回图片的网址:
http://indicator.amessage.info/indic...mp;param4=.png
这是一个返回文本:
<一个相对= nofollow的 href =http://indicator.amessage.info/indicator.php?param1=coobnet%40jabber.org&param2=bounce&param3 = HTTP%3A%2F%2Fstudent.ugent.be%2Fastrid%2Fpics%2Fjabber%2F&放大器;放大器; param4 = .PNG目标= _blank> http://indicator.amessage.info/indic...mp; param4 = .png
我怎么能看到2与PHP代码之间的区别?
希望那个sb。可以帮我解决这个问题,
问候,马蒂亚斯
Hi,
Depending on if I get an image or a text of a certain URL, I want to do
something different. I don''t know in advance whether I''ll get an image
or a text.
This is a URL that returns an image:
http://indicator.amessage.info/indic...mp;param4=.png
This is one that returns text:
http://indicator.amessage.info/indic...mp;param4=.png
How could I see the difference between the 2 with PHP code?
Hoping that sb. can get me out of this,
greetings,
Mattias
这篇关于图像和文字:如何看待差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!