> I want to display some text on web. This text should appear for limited > period e.g from 20th July 12pm till 25th July 3pm. After 25th July 3pm the > text should disappear from screen.
<? //mktime(hour,minute,second,month,day,year) $start = mktime(12,0,0,7,20,2002); $end = mktime(15,0,0,7,25,2002); $now = time(); if($now > $start && $now < $end) { //display text } else { //text expired } ?> Something like that. You can use strtotime() instead of mktime() if you want... ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php