Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $dir = opendir("/home/fabian/Downloads");
- $count = 0;
- while (($file = readdir($dir)) !== false)
- {
- $filelength = strlen($file);
- for ($filelength<=150;$filelength>$count;$count++){
- echo "<option value='$count'>$file</option>";
- }
- }
- closedir($dir);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement