(.+?)<\/span>/'); preg_match_all($root,$content,$base); //loop through all the URL's of our backlinks one by one foreach ($base[1] as $link) { $link = str_replace("
", "", $link); //add one to our counter $n = $n + 1; //get the pagerank of the link in question $pr = getPageRank($link); //the pagerank script returns the value of (-1) if the page has no pagerank. This looks crap, so we're going to change that to Zero if ($pr < 0) { $pr = 0; } //print out our link, along with its pagerank, to our page. echo $n. ' - ' .$link. ' - pr ' .$pr. '
'; ob_flush(); flush(); } ?>