Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function dirlist()
- {
- $dirPath = dir($main['path']);
- $fileArray = array();
- while(($fileArray = $dirPath->read()) !== false)
- {
- if((substr($file,-3)=="mkv") && (substr($file,-5)!=="d.mkv"))
- {
- $fileArray[] = trim($file);
- }
- }
- $dirPath->close();
- sort($fileArray);
- $c = count($fileArray);
- for($i=0;$i<$c;$i++)
- {
- echo "<option value=\"".$fileArray[$i]."\">".$fileArray[$i]."\n";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement