View Single Post
Old 09-01-2007, 07:47 PM  
psili
Confirmed User
 
Join Date: Apr 2003
Location: Loveland, CO
Posts: 5,526
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:
Originally Posted by psili View Post
I suck at programming, so if you try the following, you might be insane.

Code:
<?PHP
 // default to all hours
 $flash = "<object....><embed....></embed></object>";
 // test time frame
 if( date("H") >= 20 && date("H") != 0 ) 
 {
   $flash = "<object...>new shit<embed...>new shit</embed></object>";
 }
?>
Code:
 <html>
   <body>
    <?PHP echo($flash); ?>
   </body>
 </html>
Again, I'll make no excuses for the above blowing up a server. Sorry. I like to bump threads sometimes with uselessnessnessness....ness.
__________________
Your post count means nothing.
psili is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote