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 to catch sub-directories under $imagesdir > if(is_dir($file)) ///// This is not evaluating properly!!! Use an absolute path, or if you know your current working directory prepend the relative path. > echo filesize($file); ///// This is not evaluating properly either!!! Ditto. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* Anger kills as surely as the other vices. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php