Skip to content

Instantly share code, notes, and snippets.

@krutz27
Created October 4, 2013 13:31
Show Gist options
  • Select an option

  • Save krutz27/6825945 to your computer and use it in GitHub Desktop.

Select an option

Save krutz27/6825945 to your computer and use it in GitHub Desktop.
<?php
$time = time () ;
//This line gets the current time off the server
$year= date("Y",$time);
//This line formats it to display just the year
echo "Copyright &copy;" . $year . " YOUR-SITE-NAME | All Rights Reserved";
//this line prints out the copyright date range
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment