I need a two part random image script, that does the following. Part 1: Update Script. Scans the directory it is put in for certain filetypes (in this case, images), and puts the paths to all of the files into a mysql database. Each file is assigned a number. Sets variable "max" in script 2 to the number of images in directory. Must be sturdy, will be going over thousands of images. Part 2: Display script. This generates a random number between 1 and "max", grabs the file which corresponds to said number in the database and displays it. Must work in img tags.
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request.
3) Exclusive and complete copyrights to all work purchased. (No GPL, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site).
Red Hat Linux 9, Apache [url removed, login to view], MySQL, PHP.