Seo Strategy: News
Seo Strategy: Thematic Articles
Seo Strategy: Articles A-Z
Our Partners
SiteMap
all articles Articles
  • Optimize your website...and they will come
  • Top 20 contributing factors for google seo
  • How to build backlinks via google alerts
  • How to build an impressive social networking presence, beginning with facebook
  • Web designs deadliest 4 mistakes
all news News
  • Nebuad aims to mollify privacy critics with senate testimony
  • Yahoo: phoenix or zombie?
  • Answers.com takes new, old approach to search
  • Viewzi offers new look at visual search
  • A new trend for google

Google cache file date stamp in php


Google caches pages and you can view these cached pages to see why the page was found for your hunt. When you are often revising pages it can be helpful to see the date the cached page was spidered by Google. This article shows how to date stamp PHP pages so you can view this date in Google's cache.

For this code to work your page must be parsed as a PHP page by your waiter. This normally means that the page must have a .php extension.

Here is the date stamp code we use at the underside of each page:

    $the_date = "Today is ".date ("l, F d Y");   
    $the_time = "The time is ".date ("H:i \(O")." GMT)";   
    $all_date = $the_date.'
'.$the_time;
    echo $all_date;
?>


This is a typical output from our code:

Today is mon, February 09 2004
The time is 14:44 (-0500 GMT)


The 'date' function used in this code has many format options, the complete documentation is at http://www.php.net/manual/en/mathematical function.date.php

The easiest way to include this code is to put it in a PHP include file and call that file from each page on your site. The code for career the include will look something like this:

include(date-time.incl.php);


This code can be put at the underside of each page in a font smaller than your convention font size. Most users won't notice it but you can easy find it when look at Google's results.