RE: [PHP] Question about time...
| From: | Bastien Koert | Date: | Thu, 25 Oct 2007 00:59:18 +0000 |
| Subject: | RE: [PHP] Question about time... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-263623@lists.php.net to get a copy of this message | ||
what about
if (date("m") == 11){
echo "";
}
bastien
----------------------------------------> To: php-general@lists.php.net> From:
japruim@raoset.com> Date: Wed, 24 Oct 2007 15:57:38 -0400> Subject: [PHP] Question about
time...>> Hi Everyone,>> I am attempting to get the logic of something figured out and
I> thought someone might be able to confirm what I'm thinking :)>> I want to be able
to display something like an image of a turkey> during the month of november from now until
I'm dead. I was playing> around with mktime and it showed very different time stamps for>
11/1/07 and 11/1/08 so I can't set it to compare specifically to the> timestamp.. But, would
I be able to have it evaluate the string> stored in php as 11/1/07 and create a timestamp to
compare todays> date to, and if it matches within the month, have it display the> turkey? and
if not, have it display a different graphic?>> I'm attempting to be able to make small
changes to my website without> having to remember to do them or change them :)>> I hope
I've made enough sense that someone can point me in the right> direction :)>> Thanks
for looking!>> -->> Jason Pruim> Raoset Inc.> Technology Manager> MQC
Specialist> 3251 132nd ave> Holland, MI, 49424> www.raoset.com>
japruim@raoset.com>>
_________________________________________________________________
Have fun while connecting on Messenger! Click here to learn more.
http://entertainment.sympatico.msn.ca/WindowsLiveMessenger