Hi, This is for reading a file: <?php $handle = fopen("/home/rasmus/file.gif", "r"); ?> How can I get in PHP the number of files in the directory (rasmus) and the files names in a loop? Thanks Suad -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php