RE: [PHP] Question about time...
| From: | tedd | Date: | Thu, 25 Oct 2007 01:01:17 +0000 |
| Subject: | RE: [PHP] Question about time... | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-263625@lists.php.net to get a copy of this message | ||
At 3:10 PM -0700 10/24/07, Instruct ICC wrote:
I want to be able to display something like an image of a turkeyWhen you stop paying for hosting, the application get's the idea when it's bits go poof! If anyone ever noticed, my web site (http://sperling.com) has a tree on it that changes with the seasons. I use: $dates = getdate(); $month = $dates['mon']; $w = "http://www.sperling.com/css/seasons/"; switch( $month ) { case "03": case "04": case "05": $var = $w . "spring.jpg"; break; case "06": case "07": case "08" : $var = $w . "summer.jpg"; break; case "09": case "10": case "11": $var = $w . "fall.jpg"; break; case "12": case "01": case "02": $var = $w . "winter.jpg"; $break; } echo($var); And this code is called from within my css file for a background image. Yes, I use variables in css. Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.comduring the month of november from now until I'm dead.And how will the application know when you are dead?