Jump to content

Scarlet

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Scarlet's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Yes, I knew it would only work on the one day, but that was as simple as I could get it! But I do see the logic in your idea. And now I'm learning what mktime and floor do, lol. Thank you so much! I would say perhaps I'll get in to PHP yet, but it all seems too logical for me
  2. 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!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.