Home Tutorials Libraries Scripts Jobs PHP+MYSQL E-Book Contact Us

Dynamic copyright year with php

Nov 24, 2008 Author: vvaswani

On the footer on website we see All rights reserved John Smith copyright 2000 - 2007 That is hard for editing on all your pages every year . With PHP we can do this process very fast in footer of your page put


1- <?php
2- echo (“All rights reserved pelaphptutorials.com copyright 2005 - “
3- . Date('Y'));
4- ?>
and result will be " All rights reserved pelaphptutorials.com copyright 2005 - 2007? if we change Date('Y'); into Date('y'). result will be All rights reserved pelaphptutorials.com copyright 2005 - 07


views 4961 Bookmark and Share
Lunarpages.com Web Hosting hostgator
Subscribe to our Rss Feed Follow us on Twitter Become our Facebook fan
Most Viewst
Articles
Nov 24, 2008 Wordpress
Nov 24, 2008 Joomla CMS
Sep 30, 2009 How many visitors browsing the site at the moment?
Nov 21, 2008 Anti Spam Bot Email by ASCII
Nov 24, 2008 Dynamic copyright year with php
Recent
Comments
Nov 24, 2008 Wordpress
Nov 24, 2008 Joomla CMS
Sep 30, 2009 How many visitors browsing the site at the moment?
Nov 21, 2008 Anti Spam Bot Email by ASCII
Nov 24, 2008 Dynamic copyright year with php