Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

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:



  


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 DZONE NEWSLETTER

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.

X

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

{{ parent.tldr }}

{{ parent.urlSource.name }}