Advertisement
Guest User

Untitled

a guest
Oct 25th, 2014
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. $files = scandir("txtfolder");
  2.  
  3. foreach($files as $f)
  4. {
  5. $pi = pathinfo($f);
  6. $ext = $pi['extension'];
  7. if($ext == "txt")
  8. {
  9. //print them out if they are txt
  10. }
  11.  
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement