This is the blog of Adam Kalsey. Unusual depth and complexity. Rich, full body with a hint of nutty earthiness.
Freshness Warning
This blog post is over 17 years old. It's possible that the information you read below isn't current and the links no longer work.
1 Jan 2007
Brad Feld wants to know if you’ve updated your copyright dates and suggests you put them in an include for update-once ease.
Most sites I’ve built take this a step further—the dates are dynamic. Copyright dates are often a range, and of course the first date doesn’t change. But the last date is always current with a dynamic copyright.
In Movable Type, you can use this...
© 1996 - <MTDate format="%Y">
In PHP...
echo '© 1996 - ' . date('Y');
And in Smarty...
© 1996 - {$smarty.now|date_format:"%Y"}
Only if your web server is set up to process .html pages as PHP. If you're using Apache, adding the following to your .htaccess file should do the trick (assuming that PHP is already set up on your server)... `AddType application/x-httpd-php .html` But don't do this lightly. There's performance and server load considerations to think about. This means that every .html page on your server will be processed for PHP, regardless of whether you actually put any PHP code in there.
Very helpful notes on Apache and .htaccess...thanks Adam. Viv
This discussion has been closed.
Dave Kaufman - Techlife
January 1, 2007 1:57 PM
Interesting and useful...now the dumb question.... in HTML? or if your Apache webserver has PHP and the page is .html can you use the PHP?