OW Debug - Notice
Message: Trying to access array offset on value of type null
File: /home/romarekl/public_html/sosyallift.com/ow_plugins/forum/controllers/topic.php
Line: 136
PHP BACKLINK CHECKER KOMUT Forum | Sosyallift©
Loading...
 
tr
Whordark
Whordark Ağustos 28 '15

Bu muhtemelen kimse bilmeden (ya da öğrenme) PHP 15 saniye içinde yaklaşık oluşturabilirsiniz basit betik. Ama yine de herkes PHP de toplam noob sadece durumda burada yayınlayacağız.

Bu komut amacı: Her web sayfasının URL'sini biliyorum sağlanan web sayfalarının yüzlerce belli verilen backlink kontrol etmek.

<?php $source = file_get_contents("source.txt"); $needle = "www.IamtryingtocheckThisPage&quot;; //without http as I have imploded the http later in the script $new = explode("n",$source); foreach ($new as $check) { $a = file_get_contents("http://&quot;.trim($check)); if (strpos($a,$needle)) { $found[] = $check; } else { $notfound[] = $check; } } echo "Matches that were found: n ".implode("n",$found)."n"; echo "Matches that were not found n". implode("n",$notfound); ?> or Other way <?php function check_back_link($remote_url, $your_link) { $match_pattern = preg_quote(rtrim($your_link, "/"), "/"); $found = false; if ($handle = @fopen($remote_url, "r")) { while (!feof($handle)) { $part = fread($handle, 1024); if (preg_match("/<a(.*)href=["']".$match_pattern. "(/?)["'](.*)>(.*)</a>/", $part)) { $found = true; break; } } fclose($handle); } return $found; } // example: //if (check_back_link("http://www.abc.com&quot;, "http://www.xyz.com&quot;)) echo "link exists"; ?>
Paylaş: