Path : /home/artemisi/www/phpGenImageTest__3e4c3ab/ |
Current File : /home/artemisi/www/phpGenImageTest__3e4c3ab/findfiles.php |
<?php //$tdir = "."; //$tdir = "http://www.artemisiaink.com/phpGenImageTest/images/"; $tdir = dirname($_SERVER["PATH_TRANSLATED"]); $tdir .= "/images/"; echo "looking for files in: ".$tdir."<br>\n"; $dh = opendir($tdir); while (($file = readdir($dh)) !== false) { echo "filename: $file : filetype: " . filetype($tdir . $file) . "<br>\n"; } closedir($dh); ?>