Guest BurkeKnight Posted October 10, 2013 Share Posted October 10, 2013 Ever forget to change the copyright on your website when the year changes? Here is a code that will do that for you, every year. In HTML page: ©<?php echo date("Y");?> YourSite.com In php page: ' . date("Y", time()) . ' Here is a Java Script version: <script language="javascript"> var enabled = 0; yeartoday = new Date(); var thisyear; thisyear = (yeartoday.getFullYear()); document.write("© "+thisyear+" YourSite.com"); </script> Quote Link to comment Share on other sites More sharing options...
Guest r4ym0nd Posted December 16, 2013 Share Posted December 16, 2013 Please live demo guys :D Quote Link to comment Share on other sites More sharing options...
Guest BurkeKnight Posted December 16, 2013 Share Posted December 16, 2013 There are no "Demos" for a lot of these codes. I have a lot of sites, yes, but I don't plan on making a Demo Site for code snippets. ;) Quote Link to comment Share on other sites More sharing options...
Guest r4ym0nd Posted January 25, 2014 Share Posted January 25, 2014 Ok Thank you :D Quote Link to comment Share on other sites More sharing options...
randiv Posted November 17, 2016 Share Posted November 17, 2016 Ok, Got It...... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.