PHP - Copyright
Very simple PHP script that can be included within a page to update the copyright automatically.
It is a basic script that I had implemented in the first approaches to web programming.
Language: PHP
Year: 2010
<?
$nomesito = ""; /* Site's Name */
$anno_0 = ""; /* Start year */
$anno_0 = str_replace(" ", "", $anno_0);
$anno = date(Y); /* Actual year */
echo $nomesito." © ";
if ($anno_0 >= $anno)
{echo $anno;}
else
{echo $anno_0." - ".$anno;}
?>