采集一个页面  他的图片地址是   <IMG alt="" hspace=3 src="http://www.watertest.com.cn/products/showimg.php?iid=2544&amp;action=small" align=right border=0>
怎么才能获得图片的真实地址??、

解决方案 »

  1.   

    这个可能是GD库生成的图片,所以有GET参数传进去了,根据参数不同GD库可能输出不同的图片,看看能否直接打开
      

  2.   

    直接连接他的地址就是了.楼上那个说的没错 GD根据传递的参数生成不同的图片.http://www.watertest.com.cn/products/showimg.php?iid=2544
    他用什么地址 你也用啥地址 要图片就直接用这个地址下 .
      

  3.   

    file_get_contents("http://www.watertest.com.cn/products/showimg.php?iid=2544&amp;action=small");file_put_contents(....)