|
Do you manually change the copyright year on every page of every web site you maintain sometime in January every year?
If so, then this PHP code will make it so you never have to again.
© <?php echo date("Y");?>
The code above will show the © symbol and the current year. For example: © 2007. On January 1 it will automatically change to © 2008.
Web sites with copyright dates that are a year or two behind give off the impression of inactivity and are unprofessional. Use this time saving PHP code and never mess with the copyright date on your web sites again.
How to show today’s date
To show today’s date use the following PHP code.
<?php echo date("M d, Y");?>
The above code will show the abbreviation for the month followed by today’s date and then the year. For example: Sep 25, 2007.
Many an Internet marketer has used this PHP code to show that a deal will only last until the end of today’s date.
Spread the word:
If you like this post, then consider subscribing to our full feed RSS.
|