Home Forums PHP Auto Generated Copyright Year using PHP

Tagged: ,

This topic contains 0 replies, has 1 voice, and was last updated by  Usman Haider 3 years, 2 months ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #669

    Usman Haider
    Keymaster

    While a webmaster is busy in developing and managing his website, he has to manually change the copyright year in the footer of his website every year. This is a task which can be assigned to PHP for doing automatically as soon as the new year starts. Here it is how to do it:

    Displaying Current Copyright Year Only:

    Displaying Start Year and Current Year:

     Displaying Error Free Start Year and Current Year:

    Hope it will save some of your time in coming years. 🙂

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.