Hi. I'm trying to refresh a php-file that is included in the other one, but I am not able to do so. Here's what I want to do (simple version): File 1: <html> <head> </head> <body> <div> </div> </body> </html> File 2: So, what I want to do, is to shuffle the variable every 10 seconds, thus making a new, and different, entry from the array to be echoed out in file 1.
you can do your shuffling at page generation time and set a timed redirect ( php header(location: xxx ) or html meta redirect ) that actually regenerates the page and append the randomly picked next variable as get parameter