Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $files = scandir("txtfolder");
- foreach($files as $f)
- {
- $pi = pathinfo($f);
- $ext = $pi['extension'];
- if($ext == "txt")
- {
- //print them out if they are txt
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement