#!/usr/bin/php -q /", implode($out,""),$match); preg_match("/totalResultsAvailable=\"(\d+)\"\s+/", implode($out,""),$match); $LP = $match[1]; if($LP) { print $domain.": "; list($LP,$junk)=split(" ", $LP); $LP = preg_replace("/.+query=.+/","",$LP); printf("\tLinkpop: $LP\n"); } } } else { #print "On hold?\n"; unset($result); #exec("$lookup $domain", $result); #print implode("\n\t",$result)."\n"; if($chk_lp) { unset($LP); unset($match); unset($out); $url = sprintf("%s%s", $linkpop, $domain); #$cmd = sprintf("%s --dump '%s'", $lynx, $url); #$cmd = sprintf("%s '%s'", $wget, $url); #exec($cmd, $out); $out = @file($url); #preg_match("/of\s+(\d+)\s+containing/", implode($out,""),$match); #preg_match("/of\s+(.+)\s+results containing/", implode($out,""),$match); #preg_match("/Page 1 of\s(\d+)\sresults/", implode($out,""),$match); #preg_match("/Inlinks\s\((.+)\)<\/strong>/", implode($out,""),$match); #preg_match("totalResultsAvailable=\"(.+)\"", implode($out,""),$match); preg_match("/totalResultsAvailable=\"(\d+)\"\s+/", implode($out,""),$match); $LP = $match[1]; if($LP) { print $domain.": "; printf("\tLinkpop: $LP\n"); } } #$query = sprintf("Select * from tracker where domain='%s'", $domain); #$q = mysql("easywhois", $query); #if(mysql_numrows($q)) { # printf("\tTracker: ON\n"); #} #print "\n"; } #} ?>