Random File Picker
The script simply takes the name of a directory and returns a random file from within that directory. An example of its use is provided by means of script to play the game Scissors/Paper/Stone.
For a live use of this application, I use it to simply manage links from my site, it's quick and easy to add,amend and delete the html link code into files in several directories, and keep thus the links separate from the html formatting of the page.
Once a random filename has been selected, the uses of it are vast, as in the example the contents of the file can be displayed or parsed, or for an image file the contents could be displayed via an IMG tag.
To download this random file picker script in zip format - click wcz_randomfilepicker.zip. Note this is version 1.0 of the script, the script is free (GPL), but if you like it or use it I'd appreciate a few words in my guestbook, drop me an email to firstname.lastname@example.org or a link from your site to mine would be great!
Selected File :
Selected File Contents :
Click to Retry Random Select
Script by Chris Green - webcreationz.co.uk