Scripting a Dynamic PHP Copyright

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.

<?php echo \"Copyright © 1998-\".date(\’Y\’); ?>

Leave a Reply

Your email address will not be published. Required fields are marked *