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:





Example: 

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

Simple as that.
Topics:

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

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

{{ parent.tldr }}

{{ parent.urlSource.name }}