Re: [PHP] Directory Entries

2004-11-09 Thread Jason Wong
On Tuesday 09 November 2004 17:09, Dave Lampron wrote: > Hello I'm having problems with the following code: > > if (! ($dp = opendir($imagesdir))) die ("cannot open $imagesdir."); > while($file = readdir($dp)) > { > if ($file != '.' && $file != '..') > { > > ///Second test doesn't seem

[PHP] Directory Entries

2004-11-09 Thread Dave Lampron
Hello I'm having problems with the following code: if (! ($dp = opendir($imagesdir))) die ("cannot open $imagesdir."); while($file = readdir($dp)) { if ($file != '.' && $file != '..') { ///Second test doesn't seem to catch sub-directories under $imagesdir if(is_dir($file)) / Thi