Damn....never thought about that
Code:
<?php
$time = time () ;
//This line ask the server for the time (again)
$year= date("Y",$time) . "<br>";
//Strip it all down to the year...Take it off babe
echo "Copyright " . $year;
//Spit it all out and smile
?>
Put all that into a file named copyright.php and call it in a include mention in the page.
Code:
<?php include_once ("copyright.php"); ?>
HINT: If it is a html add this to the .htaccess
Code:
# Parse html as php (Trick Apache)
AddHandler application/x-httpd-php5 .htm
AddHandler application/x-httpd-php5 .html
OR
Javascript
:
Code:
<script type="text/javascript">
<!-- copyright=new Date();update=copyright.getYear();document.write("Copyright © "+ update + " (your company name) All rights Reserved."); //-->
</script>
Happy Happy!
