Re: Randomizing, sort of

From: Date: Sat, 14 Sep 2002 00:43:04 +0000
Subject: Re: Randomizing, sort of
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-116338@lists.php.net to get a copy of this message
why reinvent the wheel? What you need is a professional adserver. Providing this and much more. I can recommend phpadsnew. Search on sourceforge for it. It will spare you lots of time and give you much more possibilities than you might imagine right now. Andy "Marek Kilimajer" <kilimajer@webglobe.sk> schrieb im Newsbeitrag news:3D8238FD.5020306@webglobe.sk... > You may use file access time: > - first, find a file with the most recent atime > - check if(date('d', $atime) != date('d')) , choose another file > - print out the link, as browser retrieves the file, access time is updated > > Liam.Gibbs@dfait-maeci.gc.ca wrote: > > >Don't really know where to start on this. > > > >What I need is a banner that displays at the top of the page, chosen > >randomly by selecting a picture file in a directory. Easy enough. This > >already happens. But what I need is for the site to select one daily, which > >means that the same picture will display for the rest of the day. New day, > >new picture selected randomly. It doesn't change until the next day. > > > > > > >

« previous php.general (#116338) next »