I'm using:
Code:$dir = dir(".");
To get the contents of the current directory.
Then I need to know which items are directories and which are files, so I'm using:
Code:while (($file = $dir->read()) !== false){
if (is_file($file) == 1) {
But on some of my *.jpg images the is file returns are null value.
And the same on:
Code: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?