[snip] When I read the directory, if the file has more than one "white spaces", readdir only return me the file with one space ... so if I have on the file system . "ROAD 1 005.JPG" or "ROAD 1 0005.JPG" php readdir return me ROAD 1 005.JPG!!!!!! [/snip] Additional white space is typically ignored in programming languages that are built to deal with strings, but you may be able to count the string length and/or use regex to make sure that the white space remains. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php