note 46157 rejected from function.is-dir by betz
| From: | betz@php.net | Date: | Fri, 01 Oct 2004 07:28:07 +0000 |
| Subject: | note 46157 rejected from function.is-dir by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-77653@lists.php.net to get a copy of this message | ||
Note Submitter: marcus at autech dot com dot au
----
When using on Windows 2003 server I am required to include the full path to the filename like so.
$folderList=opendir($browseDir);
$dir=opendir($browseDir);
while($file=readdir($folderList)){
if(is_dir($browseDir.$file)){
echo $file;
}
}
I originally thought I could do the following:
if(is_dir($file)){
echo $file;
}
Not sure if this is by design or not, Just seemed a little strange to me.