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
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.
|