I am trying to open a directory and open each file in the directory.
This is the code I have for opening my directory;
$handle = opendir ('hoe7b_data');
while(false !== ($file = readdir($handle))){
echo "$file<br />";
}
closedir($handle);
I now want my code to open each file one by one.
Any help will be greatly appreciated.
1 Answer