![]() |
How can I show different html based on time of day? perhaps php code?
I need to embed a flash file from 8-midnight CST (server time), and a different bit of html at all other times.
Like Code:
From 8-midnight embed this movie |
|
Quote:
|
thanks Big D :)
|
Juicy likes pie... and apache!
|
<? if (date('G') >= 8 && date('G') >= 12) { ?>
Alternate code <? } else { ?> Other code <? } ?> |
Quote:
|
Damn - I tried the mod rewrite Juicy sent me. It worked fine at first, but it didn't switch it back at the appropriate hour.
Quote:
So I tried tat one, and it doesn't seem to be working either. Anyone can help me with this? 169334379 |
Quote:
|
Quote:
|
Quote:
|
Quote:
Sure it does. If you need assitance, you can ICQ me for my hourly rate. |
i just sent you an ICQ.
Hopefully your hourly rate is pro-rateable, since this should take you a couple seconds to fix :D |
I suck at programming, so if you try the following, you might be insane.
Code:
<?PHP Code:
<html> |
I do suck at programming... maybe the PHP "if" statement could have simply been:
if( date("H") >= 20 ) // 'H' { .. blah blah } anyway... back to nonsense. Quote:
|
somebody ICQ me please - 169334379
|
bargitty barg barg barg
COME ON!!!!!! *New drink :D |
Hi Wolfy,
Sorry I missed you - I was having dinner and my volume was set too low to notice. Feel free to hit me up. ICQ is in the sig. |
thank you GA and psili, you guys rock!
|
Quote:
He doesn't misplace or forget the special characters. |
Quote:
Code:
if (date("G") >= "20" || (date("G") == "0" && date("i") == "00")) { Quote:
|
I totally see what you mean. When I was sadly trying to help Wolfy, after looking at his .txt file, I gave him:
if (date("G") >= "20" { which made his PHP puke -- I missed the right parens. Oh well... that's why there's "programmers" and "script kiddies" (I'll be the latter) to help all others get confused, I guess. Quote:
|
All times are GMT -7. The time now is 09:42 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc