I'm using:
Code: Select all
$dir = dir(".");
Then I need to know which items are directories and which are files, so I'm using:
Code: Select all
while (($file = $dir->read()) !== false){
if (is_file($file) == 1) {
And the same using is_dir:
Code: Select all
while (($file = $dir->read()) !== false){
if (is_dir($file) == 1) {
Is this an error anybody else has ever had? Have they found a way around this?