01.02.2014, 22:13
Hey,
I notice that lots of website have outdated copyrights, and updating them seems like a hassle if you have lots of pages, so I made this copyright script using PHP that updates automatically every year.
Include that where you copyright is.
The end result looks like this:
© 2013 - 2014 Winged Hosting - The Winged Way. All Rights Reserved.
Of course, you have to define the company and slogan.
At the very top of the page, include this
Make a file called "defines.php" in your main directory and put this in it.
This is one of the best ways to make a copyright IMO, also, you can put
all over your website rather than your company name. That way, you only have to change it in one place rather than everywhere.
I notice that lots of website have outdated copyrights, and updating them seems like a hassle if you have lots of pages, so I made this copyright script using PHP that updates automatically every year.
PHP Code:
<?php $startYear = "© 2013 ";
$currentYear = date('Y');
echo $startYear;
if ($startyear != $currentYear) {
echo '- ' . $currentYear; } ?><?php echo " $company - $slogan" ?> All Rights Reserved.
The end result looks like this:
© 2013 - 2014 Winged Hosting - The Winged Way. All Rights Reserved.
Of course, you have to define the company and slogan.
At the very top of the page, include this
PHP Code:
<?php include 'defines.php' ?>
PHP Code:
<?php $company='Winged Hosting';
$slogan='The Winged Way.'; ?>
PHP Code:
<?php echo "$company" ?>