Random file chooser
Moderator: General Moderators
Random file chooser
I'm looking for a way to randomly choose php files. I have php files set up like text ads, but I only want to display one at a time randomly. I haven't been able find a code that will do it.
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
- Figure out how to get a list of files. Difficulty: easy.
- Store the list of files in an array. Difficulty: easy.
- Use one of the random integer functions to choose one of those files: Difficulty: easy.