<?
//some file will a message on each line
$messages = file("messagefile");
$dayno = (time()/3600/24) % count($messages);
print "We are looking at message $dayno";
print "messages[$dayno];
?>

-- PeterJones - 07 Nov 2006


This topic: Main > TWikiUsers > ChadStevenFlores > MyNotes > PhpCourse > MessageOfTheDay
Topic revision: r1 - 2006-11-07 - PeterJones
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback