Forum Moderators: coopster
I want to be able to have this as always changing as my content is too, I dont want search engine spiders thinking that I do not update my content..
so rather than manually opening my pages then re-saving them is there any way to automatically do this?
Cheers.
Steve.
If you update the content daily, why not always have the current date displayed?
Last Updated: <?php echo date("j F Y");?>
Alternatively, if your news info is in a database, add another table to hold the last updated date and update it every time you update your content. Hope that makes sense.
dc
I had reached the point where robots were taking more pages and bandwidth than humans, and wanted to reduce it. The Class on this page [webmasterworld.com] was the first step to achieve that. The second step was to have an "Updated" field in the database, which was then used during the Class init to produce a Modified date. The final step is routines in the Admin pages to update "Updated" if any relevant info changes.
header("Last—Modified:" . $date);
And $date is something you get using time() or filemtime() and format properly using date(). The final date format wants to look like this:
Wed, 15 Nov 1995 04:58:08 GMT
see
[w3.org...]