Mesajlar: 1,838
Puanlar: 12,640
Konum: Istanbul
Thanks: 12 times
17 Mesajına Toplam 25 Kere Teşekkür Edildi.
|
Kod:</p> <p><?php<br /> function check_back_link($remote_url, $your_link) {<br /> $match_pattern = preg_quote(rtrim($your_link, "/"), "/");<br /> $found = false;<br /> if ($handle = @fopen($remote_url, "r")) {<br /> while (!feof($handle)) {<br /> $part = fread($handle, 1024);<br /> if (preg_match("/<a(.*)href=[\"']".$match_pattern."(\/?)[\"'](.*)>(.*)<\/a>/", $part)) {<br /> $found = true;<br /> break;<br /> }<br /> }<br /> fclose($handle);<br /> }<br /> return $found;<br /> }<br /> // örnek:<br /> //if (check_back_link("http://www.hedefsite.com", "http://www.siteniz.com")) echo "Link bulundu.";<br /> ?></p> <p>
|