Hi, I am looking for code or information on how to display google, yahoo, and msn backlinks for listings in my directory. I've search the forum and google for this information but have yet to find what I'm looking for. All help would be appreciated! Tim
Use something Such as the Snoopy browser simulator class to fetch search queries like "link:yoursite.com/page.html" and then use preg_match_all with a regular expression to match the links and pump them into an array. Then spit them out. I use this code to grab links from the google SERPS: preg_match_all('/\<h2\sclass\=r\>\<a\shref\=\"([^\"]*)\"/', $page, $serp_links);
Thanks for the replies...I found the following links which seem to be good info. Although I haven't tried using the code it all makes sense. http://www.roscripts.com/Display_Google_backlinks_with_PHP-79.html http://www.roscripts.com/Display_Yahoo_backlinks_with_PHP-81.html http://www.roscripts.com/Display_MSN_Backlinks_with_PHP-80.html