list all files in a directory


/ Published in: PHP
Save to your folder(s)

The .jpg extension can be changed to any extension. So if you want to pull out only .txt files, you just need to replace the .jpg with .txt. If you want to list ALL files, just remove the condition.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.