Click to See Complete Forum and Search --> : How do you update a copyright date at the bottom of each page on a site?
wienerdog
01-06-2006, 09:20 PM
What's the most efficient way to update the copyright line at the bottom of every page of a web site? Do I need to work with each HTML file, or have most of you used frames to have the same HTML file at the bottom of every other page?
don't have time to do too much googling, but there are scripts out there. I haven't even looked at this, just clicked on one of the links from the search results.
http://codehouse.com/javascript/articles/copyright/
ecsyle
01-06-2006, 09:40 PM
I use php
<?=date('Y')?>
that will print 2006
But, to change every static page, perhaps a global search and replace?
Ryan8720
01-07-2006, 12:35 AM
Use PHP includes for the footer and then for the date use:
<? print(date("Y")); ?>
Eraser Nubbin
01-07-2006, 12:48 AM
Use templates before you build the site?
bbedit does search and replace throughout site documents that haven't been built with templates
jlknauff
01-08-2006, 07:37 PM
so does dreamweaver
Ryan8720
01-08-2006, 07:54 PM
As does TopStyle and just about everything else.
zielak
01-09-2006, 08:16 AM
I have a footer in separate html file and I'm using <?php include(" ****** "); ?> so it's very easy and fast to update.