Hello,
This is the first time I've worked with these functions so I'm sure it's in
Indian, not the arrows.
This script identifies both files and directories as directories. What am I
doing wrong here?
I'm running as a .dll under IIS.
<?
function Get_Directory_Listing($path) {
if ($dir_handle = opendir($path)) {
while ($file = readdir($dir_handle)) {
if (($file != ".") && ($file != "..")) {
if (is_file($file)) {
print($file . " is a file.<BR>");
}
else {
print($file . " is a directory.<BR>");
}
}
}
closedir($dir_handle);
}
}
Get_Directory_Listing("/my_path");
?>
Thanks j-
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php