Specific Day:
<?
$today = date('j');             // eg  1 - 31
if($today > 2)
        {
        // show
        }
else
        {
        // don't show
        }
?>

Addition of specific time frame of 12noon - 4pm

<?
$today = date('j');             // eg  1 - 31
$hour = date('G');              // eg 0 - 23
if( ($today > 2) && ($hour >= 12 && $hour <= 16) )
        {
        // show
        }
else
        {
        // don't show
        }
?>


Tweak to suit your needs


Justin






On Thursday, August 7, 2003, at 07:35 PM, Nabil wrote:


No i think you get me wrong ...
i have already in my web page some articles that i don't want to desplay on
the first and second of every month at a specific hours...


Please comment


"Nabil" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
HI all;
how can i run somthing or a function that only run on every month from the
first untill the second on a specific time:


in other word :
the first two day of every month but it end on like 2pm of the second..


if ( today is 1/of any month untill 2/ of the same month at XX hour )
{ return true}
else
{return false}


thanks Nabil





-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

---
[This E-mail scanned for viruses]




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to