• Skip to primary navigation
  • Skip to content
  • Skip to footer
Alberto Roura The place where I release.
  • Personal
  • Technical
  • Tech Vlog
  • About
  • Contact
    1. Home
    2. /
    3. Auto-updating copyright year in footer with PHP
    Alberto Roura

    Alberto Roura

    Born in Spain, now in Australia. This is my little, Internet space.

    • Asia-Pacific
    • GitHub
    • LinkedIn
    • Twitter

    Recent posts

    Speed Up Alibaba Cloud OSS Deployments By Zipping The Files

    Using AppleScript To Create Smart Albums In Photos Based On Resolution

    El 996 Chino

    Auto-updating copyright year in footer with PHP

    April 13, 2014 less than 1 minute read

    PHP logo

    Usually we visit some pages in which the year in the footer isn’t the current year. This recurrent problem can be easily solved replacing the current-year-place with this PHP code:

    <?php echo date("Y"); ?>
    

    Simple as milk.

    Tags: date, howto, php

    Categories: Technical

    Updated: April 13, 2014

    Previous Next

    Related Posts

    Country detection via PHP

    April 24, 2016 2 minute read

    Imagine a example.com with some example.com/es, example.com/fr with content related to each country. One solution is a javascript-based country detector that...

    ¿Qué hora es?, ¿qué color es?

    July 26, 2014 1 minute read

    Hoy os traigo algo interesante, aunque sea una chorrada como una casa. Pero bueno, para eso está el blog, ¿no?

    Dinamize the content with PHP

    June 6, 2014 1 minute read

    Insert a file with PHP

    April 26, 2014 less than 1 minute read

    • Twitter
    • GitHub
    • LinkedIn
    • Feed
    © 2023 Alberto Roura. Powered by Jekyll & Minimal Mistakes.