Page 1 of 1

Random picture

Posted: Mon Jun 09, 2003 5:28 am
by ampersand
Hi!

Is it possible to show random images from a folder with subfolder? What I mean is that is should show from all of the subfolders too!

Best Regards
Blackhat

Posted: Mon Jun 09, 2003 5:59 am
by qartis
If you have nested subfolders (subfolders in subfolders, possibly many levels deep) your best bet may be to take the output of `ls -R` and explode it into directories, or if you want to stay strictly php, or are on a windows server, there are some good examples on http://www.php.net/dir