Auto-Updating the Year in your Website Footer
This is a little tip for all my website manager friends out there. One of my least favorite tasks is going to all the sites we manage every year and updating the copyright notice in the footer. The other day, I was browsing an article when I came across a “DUH” idea. I am actually a little bit embarrassed that I didn’t think about it before but, what are ya gunna do? The idea that I stumbled upon was using PHP to automatically update the year. The code is super simple and darn near faster than writing “Copyright 2011” or whatever year it happens to be.
Just drop this little snippet of code in your footer and you will never have to worry about it again:
© <?php echo date(Y);?>
Hope this helps at least one person out there. Got any other “DUH” ideas? Please share them with us in the comments.
With over 20 years of experience in the digital media world, Matthew has worked for and with Fortune 500 businesses and has built companies from the start-up stage to exit strategy. He recently helped develop a data insight engine to bridge the gap between search, social, and mobile marketing to maximize the visibility, relevancy, and predictive success of online businesses. Matthew is the founder of MINT Social, an award-winning digital marketing company that accelerates online marketing results to help businesses get found and thrive online. Matthew has developed an educational curriculum for Universities on social media for businesses, is a founding board member of the Arizona Innovation Marketing Association (AZIMA), a board member of HeroZona Foundation and on the advisory board (Vinnies) for St. Vincent de Paul - Phoenix. Matthew is a mentor with ASU Entrepreneurship and Innovation Group, a speaker on social media and digital marketing, and is a subject matter expert with many online portals.