Greetings all,
Something strange is happening, and I was wondering if anyone has seen this, and maybe has a fix or workaround for it. I have a SMBFS mounted directory on my webserver. When I attempt to display the directory contents of it, PHP does not recognize the sub-directory folders as 'folders'. The code I am using is :
<?
$dirPath = "/path/to/SMBFS/directory/";
$dhandle = opendir($dirPath);
while ($filename = readdir($dhandle)) {
echo $filename;
if(is_dir($filename)) echo ' <font color=red>[DIRECTORY]</font>';
echo '<br>';
}
?>
Using this code on any other non-SMBFS directory results in the correct display.
Any clues????
TIA!
spookweb