See folderwalk in action or download it.
* * SOFTWARE LICENSE: GPL * Copyright (C) 2011 Hans-Georg Bork (firstname.lastname@example.org) * * This script is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This script is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this script; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * or check http://www.gnu.org/licenses/ for more information. * These scripts just provide a way to list files in folders. Currently it lists MP3 files (extension .mp3) and play them, but this can be used to list any files. Within readfolder.php links are made out of filenames and subfolders are listed by their names. Any files or folders with a dot at the end of their name are ignored; this is to make it easier to ignore . and .. directories and still have an easy way for hidden folders. Any other explanation should be excerpted out of the source. Have fun :)