Tutorials Infos - Anleitungen - Hilfe - Dreamcodes
 

Backlink Check

Das ist der Beispiel Code für einen Backlink Check

Script:

<?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.
XYZ.com", "http://www.XYZ.com")) echo "link exists";
?>

 
ID: 1000
eingestellt am: 09.06.2006
Autor: na
Status zum lesen: Gast
gelesen: 9410
Webseite: www.dreamcodes.com
[Drucken]