Posts Tagged ‘copyright’

php: keeping your site’s copyright up to date

This one is very quick and easy, but can save you a great deal of time if you have more than one web site, or if your web site consists of static pages rather than dynamic ones. Enough talking, let’s get into what’s involved:

For PHP:
If you use PHP on your web site, then you can include this line in your footer.txt (or equivalent file) to achieve the desired result:
Copyright © <?php echo date('Y'); ?> Your Company Name, Inc.

For ASP:
Ditto with ASP, this code will get you going.
Copyright © <%=year(date)%> Your Company Name, Inc.

Now remember, these won’t work on plain .html pages, or on a server that does not support PHP or ASP.

That’s all folks!

If you have an idea or article that you would like to contribute, send it on! We’re always looking for good, quality articles. Note that we will not republish an article that has been published elsewhere, so keep it original!






DynamiX Web Design

DynamiX Labs is Copyright © 2014 DynamiX Web Design, LLC.
DynamiX Labs is proudly powered by WordPress

Entries & Comments.  |  thanks & about.


The DynamiX Mascot button submit it! Background
hire dynamix!