Over a million developers have joined DZone.

PHP Copyright Updater

// PHP Copyright Updater
// by Evan Walsh
// NothingConcept.com

This code will automatically change the copyright on your site as the year changes.  Tested and approved by me.

Just call this in one of your PHP files by including the file with this code in it:


Then place  or something similar in the place you want the copyright to display.

Simple as that.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}