【发布时间】:2015-06-16 00:07:02
【问题描述】:
我想知道如果给出图像 url 是否可以获得图像的超链接,例如:我有一个网页说 (http://www.example.com) 带有图像 例如:
<a href="http://example.com/12344/623/2"><img id="img" src="http://example.com/623/5602225.jpg" alt="The Image" name="img" height="1140" width="800"></a>
我在想有没有可能得到这个
http://example.com/12344/623/2
当我给予时
http://example.com/623/5602225.jpg
作为 php 和 CURL 的输入?
【问题讨论】:
-
在您的问题中,
http://example.com/12344/623/2和http://example.com/623/5602225.jpg除了623之外彼此没有关联。你能说清楚吗? -
没关系,如果你用精确的参数编辑问题,它会很容易帮助你
-
它不像我输入图像 url 即 src 并且我想获取与之关联的 href 属性
标签: php html image image-processing simple-html-dom