Thank you fro the suggestion !
I like it very much, of course I have just finished to write code in the other way...
I have take the first five caracters for the product name and I create the directory.
If the directory alrady exist, no problem, it doesn't make the dir and it will only copy the file inside... each product could have up to 10 pictures, and the pictures are uploaded while you insert the products so I hope that the possibilites that the same file name and same directory name occures are very low...
If I get your solution before I will surely use, and I'll do in future, but it could have a problem in my opinion: suppose you have to create a drivers DB and tyou need to type and mantain the file name exactly like you type it...what you do ?
Thank you very much for your help !
Fabio