so I have somewhere between 15-300 images in a folder and I want to know which would faster:
loading all the image (file) names into an array and then randomly picking 3 distinct files using $file = opendir($folder_name)
-- OR --
loading all the image file names into the mysql database, then querying for 3 of them, say something to this effect:
SELECT filename FROM table_name ORDER BY rand() LIMIT 3
-- OR --
maybe there is something else that I can do that I didn't think of
I would try this, but I really wouldn't know how to test which one is the fastest.