Necessity of Dynamic Copyright Section:
Ever looked at a website and wondered if it is still in operation? Maybe a thing or two looked like they could have been updated – but when you notice the copyright notice the in the footer. "showing old year. Right, this site must be dead. Let's Go Forward."This is because,
Sometimes owner may forget to update the copyright section or it is difficult for him to update...
So To future-proof your footer, it's better to just let computers take care of this. Grab one of these snippets and paste that on your page (or forward this site as a friendly reminder to someone who can do it for you).
JavaScript:
© 2010<script>new Date().getFullYear()>2010&&document.write("-"+new Date().getFullYear());</script>, MyCompany.
© 2010-2016, Company.
PHP :
© <?php $fromYear = 2008; $thisYear = (int)date('Y'); echo $fromYear . (($fromYear != $thisYear) ? '-' . $thisYear : '');?> MyCompany
© 2008-2016 Company
কোন মন্তব্য নেই:
একটি মন্তব্য পোস্ট করুন