Automatic Copyright Date Update Script for PHP, ASP, and Javascript

copyrightsignIt’s a new year, and with that comes the annoying task of updating the copyright dates in the footer of all of your sites.

So this year make a resolution to never, ever do this again and just insert some code to handle the date for you. Examples in a few different languages are included below as well as a javascript version for static HTML pages:

PHP
Just copy, paste, and change the beginning year (shown as 2001)

OR

Just copy, paste, and change the beginning year (shown as 2001)

ASP
Just copy, paste, and change the beginning year (shown as 2001)

OR

Just copy, paste, and change the beginning year (shown as 2001)

OR

Just copy, paste, and change the beginning year (shown as 2001)

ASP.NET (C#)
Just copy, paste, and change the beginning year (shown as 2001)

Javascript
Just copy, paste, and change the beginning year & company name

OR

Just copy, paste, and change the beginning year (shown as 2001)

«

Comments

  1. Pingback: Code that Caters to Your Laziness | The Simian Downtime Analyst

  2. Pingback: Code that Caters to Your Laziness

Leave a Reply

Quick Contact Form

    Uncheck box to submit
    (please prove you're human)

    RSS feed

    Enter your email address to subscribe and receive notifications of new blog content by email:

    Content Calendar
    Free Consultation