different operations on files than dirs

From: Date: Thu, 16 Nov 2000 09:36:06 +0000
Subject: different operations on files than dirs
Groups: php.general 
Request: Send a blank email to php-general+get-25631@lists.php.net to get a copy of this message
I'm stuck.. variations on the following code is what I've been trying: $handle=opendir($this->dirshow); while (false!==($file = readdir($handle))) { if ($file != "." && $file != "..") { if (is_dir($file) == 1) { STUFF I WANT TO HAPPEN IF ITS A DIR } elseif (is_dir($file) == 0) { IF ITS A FILE } Thanks for your help. phool

« previous php.general (#25631) next »