 Host4Profit
 Flash Intro Templates | Home : Script Reviews : PHP : Randomizing
- getRandomImage()
This PHP function will display a random image / graphic from a directory into your website. The function searches your directory for predefined image types (that you define) and randomly displays the filename. Includes examples of use and is very easy to setup as all you need is a directory with images in it. Can be expanded to include any sort of file. (Rating: 8.00 Votes: 2)
Rate It
Review It - 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, the author uses it to simply manage links from his 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. (Rating: 9.00 Votes: 2)
Rate It
Review It - Random Image Displayer
Random Image Displayer is a simple PHP script to display a random image or background on your Web page. It uses a flat text file to store a list of all your image information. (Rating: 9.00 Votes: 2)
Rate It
Review It - Random Image Picker
As the title suggests, this script shows a random image from a list held in a text file. Can be called from an IMG tag or via a require/include. Version 1.1 changes include: Major code clean up, more focus placed upon using inline method, and support for any valid html/text as well as images in inline mode. (Rating: 9.00 Votes: 2)
Rate It
Review It |