Re: Generating Numbers from Strings

From: Date: Sat, 01 Nov 2003 01:40:27 +0000
Subject: Re: Generating Numbers from Strings
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-168242@lists.php.net to get a copy of this message
On Sat, 1 Nov 2003 00:37:32 -0000 celticfc@iol.ie (John Ryan) wrote: > I've a bit of a problem, I want a random keyword pulled from my database. > But I dont want it random all the time. I just want it random to each page. > So I have the filename variable of the page. How do I somehow generate a > 'constant' random number from this string that is constant to each file??? > > TIA md5(__FILE__) ? Thomas

« previous php.general (#168242) next »