Simply Cutting Edge
Welcome Guest [Log In] [Register]
Welcome to zetaNetwork. We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as viewing zetaNetwork exclusive tutorials and articles, and access to our code snippets section. Registration is simple, fast, and completely free.


Click Here To Register


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
[Tip] Auto Updating Copyright Year
Topic Started: May 21 2011, 10:46 PM (1,299 Views)
Pro
Member Avatar
Underground Coding

[Tip] Auto Updating Copyright Year
Difficulty: Easy
Time: 5 Minues



I thought I'd show you guys how to have your copyrights auto updated with the current year so this is how.
Code: PHP
 
date('Y')

Simple right? That's all you need to put into your copyright to have the year auto updated.

Yeah I know this tutorial is short but it's a tip.
Pro | zetaNetwork Instructor & Admin
I Coded Most Of The Smexy Stuff You See :P
PM Me Any Questions
Need live support? Click here.
Offline Profile Quote ^
 
Connor
Rules
Newbie
Kinda common sense, but I guess for even newer coders it's a good add :P
Quote:
 

[12:59] Connor: Last night I coded from 3AM to 5AM
[12:59] Connor: Was on a roll, couldn't stop hahaa
[12:59] Alban: LOL
[12:59] Alban: I love those "coding highs" :D
[12:59] Connor: xD
[12:59] Alban: And yes, I just made that up XD
[12:59] Connor: Quoted for my ZN sig :P


Alban is dah man ;)
Offline Profile Quote ^
 
VoidPC
Rules
Getting Into The Groove
Oh My God? That's it? lol...nice tut :P
Offline Profile Quote ^
 
Flavius
Member Avatar
Awesome Cool Dude

Code:
 
echo '2011';
if (date('Y') != '2011') {
echo ' - '.date('Y');
}


That makes it from an original year to the new year.
Offline Profile Quote ^
 
SlyCooperFan1
Member Avatar
Master Raccoon Thief
I like Flav's better. XD

This is really simple. Thanks guys. :P
Offline Profile Quote ^
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Tutorials · Next Topic »
Add Reply