I can list directories. But not the files :/

From: Date: Fri, 06 Dec 2002 21:22:32 +0000
Subject: I can list directories. But not the files :/
Groups: php.general 
Request: Send a blank email to php-general+get-127335@lists.php.net to get a copy of this message
Hello. Here is the code to list all directories in my /members directory: $path = "./"; // even "."if ($dir = @opendir($path)) {while (($file = readdir($dir)) !== false) {if ($file=='.' || $file=='..' || $file=='_vti_cnf' || $file=='notes.htm' || $file=='showall_copy(1).php') continue;if (is_dir($path."/".$file)) {echo $file."<br />";}} closedir($dir);} Ok. So it shows:directory1directory2 How do I place the filename in the directory in a line left - right under each directory name?Is this possible? (for ex.)Directoryfile 1 - file 10... Ps. I hope the format is correct. If not my apologies. _______________________________________________ Join Excite! - http://www.excite.com The most personalized portal on the Web!

« previous php.general (#127335) next »