Zend - The PHP Company




Code Gallery: DarthZeth


Random picture/file function  

Type: code fragment
Added by: DarthZeth
Entered: 29/05/2002
Last modified: 06/12/2001
Rating: - (fewer than 3 votes)
Views: 5115
I designed this specifically as a random picture generator, but im sure it can be used for many things. You make a directory with the pictures that you want to randomly select. Using this funciton, you just use the directory as the aurgument and it returns the path of a random file in that directory.




Search