Problem with is_file function on WinNT and apache HELP!

From: Date: Fri, 13 Jul 2001 15:17:13 +0000
Subject: Problem with is_file function on WinNT and apache HELP!
Groups: php.general 
Request: Send a blank email to php-general+get-57738@lists.php.net to get a copy of this message
I am trying to dynamically generate an image gallery from a directory iof images. To do this I am using the following code while (false!==($file = readdir($handle))) { if ((is_file($file))) { echo ...... Link info here } } Only problem is that none of the files in the folder apper to be files according to PHP I tried using if (!(is_dir($file)) This returns every entry in the folder bar . and .. BUT it includes the all of the other directories in the directory. As I need to check the file extension before I link to it this is a serious problem as PHP crashes apache when trying to find the file extension of a directory. Any Ideas? Thanks in advance Antony Cleave

« previous php.general (#57738) next »