note 25772 rejected from function.rand by victor

From: Date: Sat, 05 Oct 2002 14:31:31 +0000
Subject: note 25772 rejected from function.rand by victor
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-37699@lists.php.net to get a copy of this message
i recommend md5(time()) for 'random' strings, i know these aren't random but you get a longer alphanumeric string, i use it for stopping caches and forcing images etc.. off a server im using select * from table order by rand() limit 1 for a motd script, and it is always the same one shown in php, but when i run it at the mysql command line it does change.. though i only have 2 motds atm

« previous php.notes (#37699) next »