Display google, yahoo, and msn backlinks

Discussion in 'PHP' started by tmeyer45458, Mar 30, 2007.

  1. #1
    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
     
    tmeyer45458, Mar 30, 2007 IP
  2. srobona

    srobona Active Member

    Messages:
    577
    Likes Received:
    57
    Best Answers:
    0
    Trophy Points:
    88
    #2
    pm sent. If you think you can get benefit, please reply.
     
    srobona, Mar 30, 2007 IP
  3. mojojuju

    mojojuju Peon

    Messages:
    53
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    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);
     
    mojojuju, Mar 30, 2007 IP
  4. tmeyer45458

    tmeyer45458 Peon

    Messages:
    355
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    0
    #4
    tmeyer45458, Mar 31, 2007 IP
  5. jawanda

    jawanda Peon

    Messages:
    151
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thanks for all these links, I have been working on a similar project and this info is quite helpful.
     
    jawanda, Mar 31, 2007 IP
  6. manilodisan

    manilodisan Peon

    Messages:
    224
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Thanks for posting my links :p
     
    manilodisan, Apr 1, 2007 IP
  7. Barti1987

    Barti1987 Well-Known Member

    Messages:
    2,703
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    185
    #7
    Barti1987, Apr 1, 2007 IP