note 8982 deleted from is_dir by jmcastagnetto

From: Date: Tue, 10 Oct 2000 23:53:30 +0000
Subject: note 8982 deleted from is_dir by jmcastagnetto
Groups: php.notes 
Request: Send a blank email to php-notes+get-6331@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?. &lt;? $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); ?>

« previous php.notes (#6331) next »