function bing_backs($url){ // to get backilinks$url = "http://www.bing.com/search?q=link%3A%20$url";$total = file_get_contents($url);$match_expression = '/<span class="sb_count" id="count">(.*?)<\\/span><\/div>/im';// preg_match($match_expression,$total,$matches);preg_match_all($match_expression, $total, $matches);echo $n_clean=$matches[1];return $n_clean=clean_me($n_clean);}function clean_me($numb){ // to clean the reutrn numbers remove coma (,) etcreturn $clean_num=str_replace(",", "", $numb);}$url="www.youtube.com";echo bing_backs($url); // not working regex seems to be ok to me
mercredi 15 octobre 2014
Inscription à :
Publier les commentaires (Atom)
Aucun commentaire:
Enregistrer un commentaire