<?
/*The concept is to display a random, though relevant, song lyric for each
day of the week.
I've thrown in a few others for specfic days of the year too (see if you can
work them out).
What fun!
This original code, Copyright 2003 Nic Hamilton, www.planarchy.com
Lyrics not my own!!! No permission granted for their use (Doh!)
Do what you will with it but please leave my name and the planarchy.com reference
intact.
It may not be rocket science but it makes me smile!
Thanks! p.l.a. xxx NiC */
function lyricday() {
$dow= date("w");
$month=date("m");
$dom=date("d");
srand((double)microtime() * 1000000);
if (($month==7) AND ($dom==4)) echo "Well papa go to bed now, it's getting
late";
else if (($month==4) AND ($dom==11)) echo "Is it wrong to wish on space
hardware?";
else if (($month==4) AND ($dom==12)) echo "Take down your Union Jack,
It clashes with the sunset";
else if (($month==10) AND ($dom==25)) echo "Happy birthday to NiC, Happy
birthday to NiC";
else
switch ($dow){
case "0":
$lyric = rand(1,3);
if ($lyric==1) echo "I'll be lazing on a Sunday afternoon";
else if ($lyric==2) echo "I know a girl from a lonely street, Cold as ice
cream and still as sweet";
else if ($lyric==3) echo "Sunday always comes too late";
break;
case "1":
$lyric = rand(1,4);
if ($lyric==1) echo "I wannna shoo-oo-oo-oo-oo-oot, The whole day down";
else if ($lyric==2) echo "I wish it was Sunday, That's my fun-day";
else if ($lyric==3) echo "I go out to work on Monday morning...";
else if ($lyric==4) echo "So good to me...";
break;
case "2":
$lyric = rand(1,3);
if ($lyric==1) echo "Tuesday I'll be off to honeymoon";
else if ($lyric==2) echo "Tuesday, Wednesday heart attack";
else if ($lyric==3) echo "And David Icke says, Goodbye Ruby Tuesday, Come
home you silly cow...";
break;
case "3":
$lyric = rand(1,3);
if ($lyric==1) echo "Bicycling on every Wednesday evening";
else if ($lyric==2) echo "...and the quiet breathing of our Persian we call
Cajun";
else if ($lyric==3) echo "She is soft, She is warm, but my heart remains heavy";
break;
case "4":
$lyric = rand(1,3);
if ($lyric==1) echo "Thursdays I go waltzing to the zoo";
else if ($lyric==2) echo "Thursday I don't care about you";
else if ($lyric==3) echo "Only for you I don't regret that I was Thursday's
Child";
break;
case "5":
$lyric = rand(1,3);
if ($lyric==1) echo "Friday I go painting in the Louvre";
else if ($lyric==2) echo "It's Friday I'm in love!";
else if ($lyric==3) echo "Friday's great coz I can hardly wait, Here come
the weekend";
break;
default:
$lyric = rand(1,5);
if ($lyric==1) echo "I'm bound to be proposing on a Saturday night!";
else if ($lyric==2) echo "Ess-Ae-Tee-You-Are-Dee-Ae-Why, NIGHT!";
else if ($lyric==3) echo "Saturday night's alright for fighting, Get a little
action in...";
else if ($lyric==4) echo "His name was always Buddy, And he'd shrug and ask
to stay...";
else if ($lyric==5) echo "Who cares what picture we see?";
break; } }
?>