Re: Am I dreaming or what :)

From: Date: Thu, 04 Sep 2003 06:31:01 +0000
Subject: Re: Am I dreaming or what :)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-161627@lists.php.net to get a copy of this message
this is in fact pretty easy. this should get you started [code] $files = split("\n",ls *gif); srand((double)microtime()*1000000); $num = rand(0, count($files)); echo "$num = $files[$num]"; [/code] John Taylor-Johnston wrote:
I have a directory jammed-packed with images. I want to read the directory contents /www/usr/htm/images/ and display randomly any *.gif or *.jpg in said directory. Do-able? Seriously? Ideas? Places to start? John
-- http://www.raditha.com/php/progress.php A progress bar for PHP file uploads.

« previous php.general (#161627) next »