Jump to content

Copyright Date Format (2001-Code?)

Featured Replies

Posted

Hi, I used to have some code on my site that allowed me not to have to update the date in my copyright line on the bottom of my website. I had some cgi code in the date that replaced the second value with code to automatically update the present date, but can't remember how to do it. ex ---> (2001-code?) I'm updating some pages right now and want to fix the copright - but only once. :D

What language? In PHP, that would be:


Not sure in Perl/CGI

2001-<?php date("Y"); ?>

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.