Hi there,
My site is utilising directories, it creates and writes to them.
One of my pages prints out a list of directories within a directory and this is working fine but i also wish to print a simple 'No directories found' when the directory is empty.
I thought i would just need to do:
if ($file = readdir($dir_handle) == false) {
etc........
}
but this doesn't work and i dunno why.
So my question boils down to how to test if a directory is empty.
Any help would be greatly appreciated.
Thanks
Nick Langridge