Here is the code which helps you go through the files of your directory
| Code: |
|
$dir = "<your dir here>"; if (is_dir($dir)) { if ($dirhandler = opendir($dir)) { while (($file = readdir($dirhandler)) !== false) { if($file !== '.' AND $file !== '..') { echo $file; //replace above line with your code } } closedir($dirhandler); } } |
