php - Output all mp4 files from multiple directories -
I have a problem. I want to produce all the filenames that have an extension. MP4 The following code can make it, but it outputs only from one directory.
& lt ;? Php if ($ handle = opendir ('/ media / AB12-34 / DCIM / 100DCIM')) while {wrong! == ($ file = readdir ($ handle))} {if ($ file! = "." & Amp; $ file! = ".." & strtolower (substr ($ file), strrpos ($ file, '.') + 1)) == 'mp4') {$ thelist = '& Lt; P & gt; & Lt; TD & gt; & Lt; Option value = "'.. $ file' '& gt;'. $ File. '& Lt; / options & gt; & lt; / td & gt;';}} Close ($ handle);
Comments
Post a Comment