Re: [PHP] Opendir listing

2003-02-20 Thread MIKE YRABEDRA
on 2/20/03 3:34 PM, MIKE YRABEDRA at [EMAIL PROTECTED] wrote: > How do I remove the '.' and '..' from displaying with the following script? > I want just the files, not the dots. > > if ($handle = opendir('graphics/')) { > echo "Files:\n"; > > /* This is the correct way to loop over the dir

[PHP] Opendir listing

2003-02-20 Thread MIKE YRABEDRA
How do I remove the '.' and '..' from displaying with the following script? I want just the files, not the dots. \n"; /* This is the correct way to loop over the directory. */ while (false !== ($file = readdir($handle))) { echo "$file\n"; } closedir($handle); } ?> --