note 6715 modified in file_exists by ronabop

From: Date: Sun, 27 Aug 2000 11:38:33 +0000
Subject: note 6715 modified in file_exists by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-3467@lists.php.net to get a copy of this message
There's a beautiful way to get the content of a directory (files, dirs etc.) this is a PHP xommand: readdir(); code example is: <? $handle=opendir('.'); echo "files:"; echo "<br>"; while ($file = readdir($handle)) { echo "$file"; echo "<br>"; } ?> http://www.php.net/manual/function.file-exists.php

« previous php.notes (#3467) next »