Over a million developers have joined DZone.

PHP Copyright Updater

DZone's Guide to

PHP Copyright Updater

Free Resource
// 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.

Opinions expressed by DZone contributors are their own.


Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

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


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

{{ parent.tldr }}

{{ parent.urlSource.name }}