Scripting a Dynamic PHP Copyright
The date is fairly
specific in how it is scripted. you can single out the year and use the PHP
script for year to script a dynamic date so you won't have to update at the
end of each year. All you do is set the starting date, apply the script!
One of the benefits of scripting the date in PHP is the viewer does not
get to see the script, but only the html outcome. Try replacing Your
copyright code for the following PHP script, substituting the starting year
for your starting year! this will save you lots of time in the future!
Below is the PHP script for adding a dynamic, or automatically updating
copyright date for your site. Copy and paste it into your page exactly where
your copyright is now.
<?
//Provided by Developingwebs.net
echo "Copyright © 1998-".date('Y');
?>
Here is how it looks:
Copyright © 1998-2010
|