Hey. first of, im really new to PHP, so im still learning. The problem i have now is: i have a dir with 600+ photos, and a database with 500+ photos (due to the fact that when i deleted photos from my webpage, i apparently only deleted it from the database, and not the dir. so.. can someone please tell me how to do a batch script that compares the dir with the database, and deletes the file thats not in the database? thanks /elias -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php