Google Msn Yahoo Bot Last Visit Date; i want to one web site google msn yahoo bot last visit date learning... please help me samples code ? thanx dp
You can manipulate the $_SERVER['HTTP_USER_AGENT'] variable to check for the bots...and then log the time/date when this has occured - for example to a file...follow this example (it will update a file named google_last_visit.txt overwriting it with the time/date of the google bot visit - which would give the last visit). <?php if (stristr($_SERVER['HTTP_USER_AGENT'], 'google')){ file_put_contents('google_last_visit.txt', date("F j, Y, g:i a")); } ?> PHP:
Hey danx10 thank you very much, I do not want this... i want to please check image. understand me ? help me please
impossible unless its your own site, in which case danx10 has given you the answer, you cant just get the visit date of any site.