note 46157 added to function.is-dir

From: Date: Fri, 01 Oct 2004 03:50:48 +0000
Subject: note 46157 added to function.is-dir
Groups: php.notes 
Request: Send a blank email to php-notes+get-77646@lists.php.net to get a copy of this message
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. ---- Manual Page -- http://www.php.net/manual/en/function.is-dir.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+46157 Delete -- http://master.php.net/manage/user-notes.php?action=delete+46157&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+46157&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#77646) next »