Papermashup

Subscribe


Tweets


"RT @danbarker: Strangely I saw a really shifty guy drop his wallet earlier today in London. When I handed it back he said "Let me give you…"

@ashleyford 7 hours ago

"RT @McDonaldsCorp: Black Friday **** Need copy and link****"

@ashleyford 7 hours 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. 😀