This has to be one of the most random questions on here.... Basically I want to make a novelty Christmas card for someone who is a PHP programmer. Problem is that I am not one. What I want is a fake script that effectively says 'if the date is Christmas, display Merry Christmas'. The closest I have found is.....
The following example will output "Have a nice weekend!" if the current day is Friday:
<?php
$d=date("D");
if ($d=="Fri") echo "Have a nice weekend!";
?>
So can I change ("D") to ("D, d M Y") and ("Fri") to ("Fri, 25 Dec 2009")? Obviously it will then say echo "Merry Christmas". Or would that just not work?
Pathetic, I know. But the thought is there. I have searched a few forums, but I haven't seen anyone doing something the same as this.
Thanks!