Re: how to display photos of the day?

From: Date: Tue, 29 Jan 2008 16:48:10 +0000
Subject: Re: how to display photos of the day?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-268254@lists.php.net to get a copy of this message
jeffry s wrote: > sorry if this question sound stupid. > i need a good, simple and efficient function to display lets say photo > of the day. > > i have a mysql table contain data about 1000 rows. i want to display > any of the photos randomly and it is fixed for one day. I use apache for that sort of thing: .htaccess: RewriteEngine on RewriteCond todaysphoto.jpeg !-s RewriteRule picktodaysphoto.php "picktodaysphoto.php" selects the photo of the day, writes it as 'todaysphoto.jpeg', and then redirects to it. 'todaysphoto.jpeg' is then deleted once a day by cron. /Per Jessen, Zürich

« previous php.general (#268254) next »