Papermashup

Subscribe


Tweets


"RT @bethgordon: .@Tesco Please rethink archaic 'Approved by Mums'. Pretty sure it's not just mothers who make childcare decisions. https://…"

@ashleyford 22 hours ago

"Is there ever a time that @DFS doesn't have a sale on?"

@ashleyford 5 days ago

Designer and web developer, Co-founder and Technical Director at Harkable.com. Previously I worked at Spotify, MySpace and InMobi. Contact me - ashley[at]papermashup.com

PHP keep your copyright date updated

AshleyAshley

There’s nothing worse than visiting a website with an out of date copyright notice, and there’s a simple way to make sure your always up to date. Just add the line below to display the current year.



Designer and web developer, Co-founder and Technical Director at Harkable.com. Previously I worked at Spotify, MySpace and InMobi. Contact me - ashley[at]papermashup.com

Comments 6
  • Med
    Posted on

    Med Med

    Reply Author

    Thank’s !!! : )


  • Ross
    Posted on

    Ross Ross

    Reply Author

    Alright well they won’t let me post the code here but if you’re interested you can check my site out!


  • Ross
    Posted on

    Ross Ross

    Reply Author

    $name = “Ross Warsing”;
    $startyear = “2010”;
    $currentyear = date(y);
    echo ‘Created by ‘.$name.’ ‘.$startyear.’-‘.$currentyear.’ ©’;


  • Ross
    Posted on

    Ross Ross

    Reply Author

    function copyright(){
    $name = “Ross Warsing”;
    $startyear = “2010”;
    $currentyear = date(y);
    echo ‘Created by ‘.$name.’ ‘.$startyear.’-‘.$currentyear.’ ©’;
    }


  • Ross
    Posted on

    Ross Ross

    Reply Author

    Yeah I’ve created a good one as well that can be called simply by a function on every page.


  • Paperboy
    Posted on

    Paperboy Paperboy

    Reply Author

    Yeah this is simple but way cool. Been using it for a couple of years on one of my sites. 😀