yahoo 收录与反链地址查询程序
<?php for ($i = 0; $i < 5; $i++) { $pagecode = @file_get_contents("http://sitemap.cn.yahoo.com/search?p=" . $q); if ($pagecode) { break; } } if ($pagecode) { preg_match('/被收录的网页: 共 <strong>(.*?)</strong>/', $pagecode, $yahoos); if ($yahoos[1]) { $siteyahoo = $yahoos[1]; } else { $siteyahoo = 0; } echo "<script type=\"text/javascript\">document.getElementById(\"siteyahoo\").innerHTML = \"<a href=http://sitemap.cn.yahoo.com/search?p=" . $q . " target=_blank>" . $siteyahoo . "</a>\";</script> "; } else { $siteyahoo = - 1; echo "<script type=\"text/javascript\">document.getElementById(\"siteyahoo\").innerHTML = \"<a href=indexed/rcsiteyahoo.php教程?q=" . $q . " target=recheck>重查</a>\";</script> "; } for ($i = 0; $i < 5; $i++) { $pagecode = @file_get_contents("http://sitemap.cn.yahoo.com/search?p=" . $q . "&bwm=i"); if ($pagecode) { break; } } if ($pagecode) { preg_match('/链向该地址的网页: 共 <strong>(.*?)</strong>/', $pagecode, $yahool); if ($yahool[1]) { $linkyahoo = $yahool[1]; } else { $linkyahoo = 0; } echo "<script type=\"text/javascript\">document.getElementById(\"linkyahoo\").innerHTML = \"<a href=http://sitemap.cn.yahoo.com/search?bwm=i&p=" . $q . " target=_blank>" . $linkyahoo . "</a>\";</script> "; } else { $linkyahoo = - 1; echo "<script type=\"text/javascript\">document.getElementById(\"linkyahoo\").innerHTML = \"<a href=indexed/rclinkyahoo.php?q=" . $q . " target=recheck>重查</a>\";</script> "; }
本文地址:http://www.phprm.com/code/47c2892813fe5049ce8cdf28907f477d.html
转载随意,但请附上文章地址:-)