Slideshow
-
Cute Kajal Agarwal
Telugu Movie WP -
The hottest lips are seeing red
Actress WP -
17 Cheating Pictures Collection
Adults Only -
10 Unique Houses From Around the World
Scenery Wallpapers -
Small Birds have big Love
Birds WallPapers -
Cute Kiss
Love Wallpapers -
Black Taj Mahal
Truth About Blak Taj Mahaal -
India Festival Art painting
Oil Pinting Wp -
beautiful sceneries wallpapers
Scenery WP -
Cat And Bird Cute Friendship
Birds WP -
ed ed 6 Most Popular Ways Of Couple Hugging
Adults WP -
Indian Village Paintings
Oil Pinting Wp -
Awsome moments on well & girls
Oil Painting Wp -
hansika visits simbu birthday party
Actress WP
Google crawl date using PHP source code. Google bot crawls every web site after a specific period. You can check that date using Google’s cache command in Google search engine. Here it is the example of Google cache.
http://64.233.183.104/search?q=cache%3Afree-computer-tips.info&sourceid=navclient-ff&ie=UTF-8&rlz=1B3GGGL_enPK238__238
I created PHP function which gets Google bot crawl date and returns in a form of string.
You can use these codes in your PHP applications.
Code are under the marks due to setting of page
function google_crawl_date($url){
$output = file_get_contents('http://64.233.183.104/search?q=cache:'.
urlencode($url).'&sourceid=navclient-ff&ie=UTF-8&rlz=1B3GGGL_enPK238__238');
$match_expression = '/appeared on (.*). The
preg_match($match_expression,$output,$matches);
if ($matches[1]=="") return "No Date found";
else return $matches[1];
}Usage of function above
Tuesday, January 4, 2011
//
Labels:
Internet Tips
//
0
comments
//
0 comments to "Get Google crawl date of a web site"
Post a Comment