note 8982 added to is_dir

From: Date: Tue, 10 Oct 2000 05:21:44 +0000
Subject: note 8982 added to is_dir
Groups: php.notes 
Request: Send a blank email to php-notes+get-6287@lists.php.net to get a copy of this message
i have a problem. . is a dir. .. is a dir too. but, other are file. what's the metter?. <? $handle = opendir("/"); while( $file = readdir($handle) ) { if( is_file($file) ) echo $file."[F]<br>\n" ; else if( is_dir($file) ) echo $file."[D]<br>\n" ; else if( is_link($file) ) echo $file."[L]<br>\n" ; else echo $file."<br>\n" ; } closedir($handle); ?> http://www.php.net/manual/function.is-dir.php

« previous php.notes (#6287) next »