Quick Search:
 
 PHP Code: Get All Files into an Array Jump to:  
Category: >> PHP Code >> Get All Files into an Array  

<< lastnext >>

Snippet Name: Get All Files into an Array

Description: This loads all of the file names in a given directory into an array.

Comment: (none)

Language: PHP
Highlight Mode: PHP
Last Modified: February 27th, 2009

<?PHP
 
$files = GLOB('/path/to/some/directory/*.*');
 
PRINT_R($files);  
 
?>


 
   Home |    Search |    Code Library |    Sponsors |    Privacy |    Terms of Use |    Contact Us © 2003 - 2024 psoug.org