Php Xenu链路检测器可以';在html代码中看不到url链接
我需要检查Xenu应用程序,查看我的www站点上的链接 在我的网站上有HTML代码Php Xenu链路检测器可以';在html代码中看不到url链接,php,html,url,xenu,Php,Html,Url,Xenu,我需要检查Xenu应用程序,查看我的www站点上的链接 在我的网站上有HTML代码 <img src="mysite/pictures.php?url=http://othersite.com/pic1.jpg"> <img src="mysite/pictures.php?url=http://othersite.com/pic2.jpg"> <img src="mysite/pictures.php?url=http://othersite.com/pic3.j
<img src="mysite/pictures.php?url=http://othersite.com/pic1.jpg">
<img src="mysite/pictures.php?url=http://othersite.com/pic2.jpg">
<img src="mysite/pictures.php?url=http://othersite.com/pic3.jpg">
但Xenu无法检查图片是否存在。如何使用pictures.php
中的一些脚本来实现它
例如,我需要检查参数url中的链接=http://othersite.com/pic1.jpg
是一张JPG图片。
我无法更改HTML代码,因为它必须是常量。因此,我必须使用一些PHP脚本来实现这一点。您有很多方法可以做到最好,因为我一直使用的是:-
可能是javascript中的某些内容?在html代码中,我得到了
<?php
include(simple_html_dom);
$html=new simplehtmldom();
$html->file_get_html('http://exampl.com');
foreach($html->find(img)->src as $scr) {
echo=strplace('mysite/pictures.php?url=','',$scr);
}
?>