1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Page is in google or not

Discussion in 'PHP' started by techimtiyaz, Jan 24, 2012.

  1. #1
    Hi All,
    I want to check it a page is in google. means the page is indexed, cached or in any form present in google.
    Can any one please help me to get this using any free API.
     
    techimtiyaz, Jan 24, 2012 IP
  2. Icecube_media

    Icecube_media Peon

    Messages:
    656
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    HI
    just type site:your site URL on google search bar and hit enterif result shows then its there other wise not.
     
    Icecube_media, Jan 24, 2012 IP
  3. techimtiyaz

    techimtiyaz Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks for reply. But my question was that how to check if page is indexed by google by using php
     
    techimtiyaz, Jan 24, 2012 IP
  4. zubizubi

    zubizubi Active Member

    Messages:
    946
    Likes Received:
    2
    Best Answers:
    1
    Trophy Points:
    83
    #4
    Can't help you dude. We do generally check our indexed page by typing the url of the page on the search box.
     
    zubizubi, Jan 24, 2012 IP
  5. govtjobsdaily

    govtjobsdaily Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Hi,
    As Icecube media said
    Just type your website in Google Search Engine or any search engine for confirming your site added or not
     
    govtjobsdaily, Jan 24, 2012 IP
  6. ericanoy

    ericanoy Peon

    Messages:
    39
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    just type site:your URL site in Google Search Engine or any on the search box...
     
    ericanoy, Jan 24, 2012 IP
  7. seosemguy

    seosemguy Member

    Messages:
    165
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    48
    #7
    seosemguy, Jan 24, 2012 IP
  8. NothingLikeThis

    NothingLikeThis Member

    Messages:
    113
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #8
    well you may need some code in php to check indexed pages in google but that requires high level of php .
     
    NothingLikeThis, Jan 29, 2012 IP
  9. lonelygrit

    lonelygrit Peon

    Messages:
    26
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    <?php
    $url='https://www.google.com/search?q=site%3Awallpapers16.com&ie=utf-8&oe=utf-8&aq=t';
    
    $result = _get($url);
    echo xt($result,'Results','for <b>site:');
    //<div id=resultStats>6 results<nobr>
    function xt($templ,$bg,$ed){
        $bgpos=strpos($templ,$bg);
        $templ2=str_replace(substr($templ,0,$bgpos),'',$templ);
        $edpos=$bgpos+strpos($templ2,$ed);
        $subtempl=substr($templ,$bgpos,($edpos-$bgpos));
        $subtempl=str_replace($bg,'',$subtempl);
        return $subtempl;
    }    
    function _get($url){
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL, $url);
        
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
        curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)");
        
        $response = curl_exec($ch);
        curl_close($ch);
        //echo $response;
        return $response;
    }
    ?>
    
    Code (markup):
     
    lonelygrit, Feb 1, 2012 IP
  10. E-Munkey

    E-Munkey Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    just type cache:URL of the page/site in google search bar
     
    E-Munkey, Feb 2, 2012 IP