![]() |
|
#1
|
|||
|
|||
Help with randomizeHi everyone,
i need your helf with some randomize-script. I've found a random script, which randomize the texts. My problem is, that this script randomize every time when you load the site, but i would like that it randomize every 3 hour. What schould i have to change, that it works? Here is that script: PHP Code:
I have not so much experience with php and need your help. Thanks Sam Last edited by JdS : 10-Jun-2004 at 08:28.
Reason: Please enclose PHP code in [php] & [/php] for syntax highlighting
|
|||
|
#2
|
||||
|
||||
|
Hello samvelyano,
I would imagine that you would need to store the 'random' array in a temporary file or database table/field. Then check if the 'temp' file or randomised array has expired each time you access it, if it has expired you generate a new 'random' array and write it to a new 'temp' file or db table/field. __________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
Recent GIDBlog
Toyota - 2009 May Promotion by Nihal
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The