I am trying to get link popularity from google and haven't been able to isolate the section I need. Perhaps my regex is wrong or something else, but I've been experimenting with eveything and cannot seem to grab the line with results. take a look:
Thanks for any help regarding this.
Web site design, internet marketing, SEO and business solutions company.
Code:
function getlp($url) {
$file = "[URL unfurl="true"]http://www.google.com/search?hl=en&lr=&ie=UTF-8&q=link%3A$url";[/URL]
$data = file($file);
$trans="";
preg_match_all("/[of]\s[about]\s[0-9\,]*\s[linking]\s[to]/Ui", $data[34], $regs);
$trans=get_html_translation_table(HTML_ENTITIES);
$result=strtr($regs[0][0], $trans);
return $result;
}
Thanks for any help regarding this.
Web site design, internet marketing, SEO and business solutions company.