note 21044 added to function.is-file

From: Date: Fri, 26 Apr 2002 13:16:59 +0000
Subject: note 21044 added to function.is-file
Groups: php.notes 
Request: Send a blank email to php-notes+get-29876@lists.php.net to get a copy of this message
WICKED.. PHP 4.0.4 on linux 7.2 If you wanna sort files in a dir other than where you execute your .php from, it doesnt seem to work with is_file(), BUT if you try $dir = "/home/imagedir"; $open_dir = opendir($dir); while($file = readdir($open_dir)){ if(!file_exists($file)){ echo "$file"; } } You might get some interresting results.. What happened for me is that the irritating "." and ".." isnt echoed but all the files are... -- http://www.php.net/manual/en/function.is-file.php http://master.php.net/manage/user-notes.php?action=edit+21044 http://master.php.net/manage/user-notes.php?action=delete+21044 http://master.php.net/manage/user-notes.php?action=reject+21044

« previous php.notes (#29876) next »