note 21044 deleted from function.is-file by alindeman

From: Date: Fri, 26 Apr 2002 20:52:22 +0000
Subject: note 21044 deleted from function.is-file by alindeman
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-29892@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...

« previous php.notes (#29892) next »