Selecting a random image from folder
Date: 12/30/05
(PHP Community) Keywords: php
Heyho,
can anyone tell me how I can do this ( http://www.totallyphp.co.uk/scripts/random_image.htm ) without having to rename the images and without having to enter a number of images? So it just selects a random image from that folder and I don't have to edit anything at all when there's a new picture or something.
It would also be cool to have the name of the file before the .jpg as alt and title. I'm a noob, so please explain as easy as possible ;)
thnx in advance ;)
Source: http://www.livejournal.com/community/php/386106.html