Jump to content
[MUST READ] Forum Rules ×

Copyright Code

Guest BurkeKnight

Recommended Posts

Guest BurkeKnight

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");

Link to comment
Share on other sites

  • 2 months later...
Guest BurkeKnight
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. ;)
Link to comment
Share on other sites

  • 1 month later...
  • 2 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...