I figured it out! it runs on my pc but not on the web! $fileroot = "amrs/$cat/"; foreach ($author = scandir($fileroot); as $author){ echo "$author"; } ??? ~Nick Couloute co-owner/web Designer SiDEkiCk2MuSiC.CoM -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php