Posts Tagged ‘year’

Using PHP To Keep Copyright Footer Year Current

June 6th, 2013, posted in PHP

Using PHP To Keep Copyright Footer Year Current,using php,copyright,current year,year,php coding,copyright-symbolUsing PHP to keep Copyright footer year current

Here’s the start of the Web Development series as part of the new addition to my Blog, including code tutorials and code snippets free for use. This article includes a small snippet of code that you can add to your site to ensure your footer PHP date is always at the current year. I’m sure the eagle-eyed users of the web are still seeing sites stuck on ‘© 2011 Copyright’ – so here’s a few easy ways to overcome it, forever !!

First thing you’ll need is a PHP web page. If your server handles PHP, then use the code below to insert into your website’s footer. Please note this will only work with PHP web pages not static HTML. Read more on PHP here.

Single Year Display

This literally just pulls in the current date using server technology, and is really easy to implement instead of manually typing the year (and forgetting about it).

&copy; <?php echo date("Y"); ?> Copyright.
Gives you: © 2013 Copyright.

Website Start and Current Year

Little longer PHP snippet – in which you set the date your website was launched, and let the PHP automatically keep the current year up to date. See below and example for details : Using PHP To Keep Copyright Footer Year Current,using php,copyright,current year,year,php coding,copyrightdate,copyright date,copyright

&copy; <?php
$copyYear = 2008; // Set your website start date
$curYear = date('Y'); // Keeps the second year updated
echo $copyYear . (($copyYear != $curYear) ? '-' . $curYear : '');
?> Copyright.
Gives you: © 2008-2013 Copyright.

ORACLE : How to Show / Get, Year Month and Date between two date ?

January 28th, 2013, posted in Oracle Queries

Use bellow sql to show year month and date :


Note : Please not do make backups before using these queries and also confirm them yourself or by aother means as

Person Of The Year By Time- The Protester

December 15th, 2012, posted in Ink On PAPER, PAKiSTAN

The Protester-Person Of The Year By Time

I saw this on someone’s blog page yesterday and it really struck me, so I decided to share it on here. To use an image of, what looks like, a Muslim woman wearing a face covering as a symbol of freedom and struggle against oppression, is certainly in this political climate something very extraordinary. I picked up a copy this evening to find the cover was designed by Ai WeiWei who was one of the other candidates shortlisted for Time’s annual accolade. Even the Muslim working at the till of WhSmith was taken in by it.

As a Muslim blogger it certainly may seem a strange thing that throughout 2011 I haven’t commented on the so-called Arab Spring at all. Personally I feel Islam is not a political religion so to speak, and what has happened in the Middle East has very little to do with it. I’m also very apprehensive as to whether toppling a dictatorial regime, even if it is from the inside, will actually lead to a better government. I suppose it’s the Pakistani within me somewhere, who has seen the results of a nation being ‘liberated’ in the name of faith. Even now we are still seeing unrest in Egypt and the struggle of freedom for Egyptians still goes on. And whether democracy actually equals freedom, I’m not so sure. Though our western politicians and secular philosophers may see saying that as humanist blasphemy, again the Pakistani in me has Zardari to support him. (Who would have thought he’d ever be useful for anything).

Time’s end of year issue, as you would expect, is an excellent summary of the year’s major protests and revolutions. I bought it mainly for the cover, but after reading an issue of Time after nearly 15 years I may pick it up more often.


FRiDAY 13th.. ; ]

May 13th, 2011, posted in DAtEs iN a YeAR

                        FRiDAY 13th

For all of u out dere…
hAPPY FRiDAY dE  Happy Friday the 13th… ; D

i mean com’on guys…its not like end of de world or anythng..
though many guys where killed n died on FRiDAY…n sumwhere on FRiDAY wht..??  ; ]

u r stil alive…
n mayb so m i.. ;D
n u knw whts de funny thng.. 😀

i m starting mY BLoGGiNG….
mY real own BLoGGinG oN FRiDAY 13th… ;D

i would 1st like 2 tel abt FRiDAY 13th
Friday de 13th
occurs when de 13th day of a month falls on FRiDAY, which mostly…n commonly superstition holds 2 be a day of bad LUCk…In de GREGORiAN CALENDAR, dis day occurs at least 1ce..but at most 3 times a year..
(hvnt read or send tht calender n hv no offense abt it either.. ; ] )

by de way…
it is said tht..
Any month’s 13th day wil fall on a Friday…if the month starts on a Sunday… 😀

intesesting naa…
de funny thng is more 2 come.. ; ]
according 2 more of mY tiny little search.. ;D

de fear of Friday the 13th is called friggatriskaidekaphobia ( FRiGGA being de name of de Norse goddess 4 whom “Friday” is named n triskaidekaphobia meaning fear of de number thirteen).. or paraskevidekatriaphobia a concatenation of deGreek words Paraskeví (Παρασκευή, meaning “Friday”)…n dekatreís (δεκατρείς, meaning “thirteen”) attached 2 phobía (φοβία, from phóbos, φόβος, meaning “fear”). ..The latter word was derived in 1911 …n..first appeared in a mainstream source in 1953….

dy even hv dis big words 4 tht.. ; ]

de turth is I dnt gv a dammn abt it.. ; ]

I lv FRiDAY..
its de most blessing day 4 mE… ; ]
I spent tym with mY FAMiLY
sumtyms with FRiENDS as well.. ; ]
so i dnt care wht thy say…
I lv FRiDAY n whtever date is it on..
n 2 prove tht I hv written all tht n posting on FRiDAY 13th… ; ]