RE: [PHP] Using PHP for directory indexing

2001-11-12 Thread Oosten, Sjoerd van
? // print the current directory in unordered list print(UL\n); // open directory $myDirectory = dir(.); // get each entry while($entryName = $myDirectory-read()) { print(LI$entryName \n); } //

RE: [PHP] Using PHP for directory indexing

2001-11-12 Thread Rudolf Visagie
function GetFiles ($DataPath, $files, $nfiles) { // Reads a directory and puts filenames into a sorted array $handle=opendir($DataPath); if ($handle) { $nfiles = -1; while (false!==($file = readdir($handle))) { if

RE: [PHP] Using PHP for directory indexing

2001-11-12 Thread Kevin Garrett
] To: 'Kevin Garrett' [EMAIL PROTECTED], '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: RE: [PHP] Using PHP for directory indexing Date: Mon, 12 Nov 2001 14:15:14 +0100 ? // print the current directory in unordered list print(UL\n); // open directory $myDirectory = dir

Re: [PHP] Using PHP for directory indexing

2001-11-12 Thread Mike Harvey
Here's one from my function collection: ~~~ function list_dir($basedir,$type=,$filter=){ //echo $basedir; $handle=opendir($basedir); $filelisting=array(); while ($file = readdir($handle)) { if ($file!=. AND $file!=..){ switch($type){ case file: