Hey,
I was doing a small file listing script and I wanted to exclude subdirectories from being shown. For that, I used:
This isn't working though. After checking with var_dump(is_dir($file));, it seems subdirectories aren't being recognized as directories, since it returned false.
Anyone know how I can fix this?
Thanks.