Member Login
Username
Password
 

Blog

get files in directory recursively [php]


Notice: A non well formed numeric value encountered in /home/corbinisnotyou/public_html/blog/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /home/corbinisnotyou/public_html/blog/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

Notice: A non well formed numeric value encountered in /home/corbinisnotyou/public_html/blog/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /home/corbinisnotyou/public_html/blog/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

Notice: A non well formed numeric value encountered in /home/corbinisnotyou/public_html/blog/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /home/corbinisnotyou/public_html/blog/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

Notice: A non well formed numeric value encountered in /home/corbinisnotyou/public_html/blog/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /home/corbinisnotyou/public_html/blog/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

Getting files from a directory can be useful if you want to access your files but forgot what subfolder names you put there (if you’ve turned indexing off, you can’t just look at the dir url and see an autogenerated list). What I do sometimes is make a php file with some wonky name, like “zebraBreath.php” and make one myself:

Method 1

Method 2

Method 3

Method 4

This entry was posted in Coding, Technology. Bookmark the permalink.