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

Popular posts from this blog

Editing Python Class in Shell and SQLAlchemy -

import - Python ImportError: No module named wmi -

uislider - In a MATLAB GUI, how does one implement a continuously varying slider from a GUIDE created .m file? -