thanks a lot!
now the problem that remains is
I want to enter this name (it is of a multiple image upload script) into a database.
the rename function renames it, but how ca I list that name that it was renamed to out so I can enter it into the database like this?
$query = "INSERT INTO testing (img1,img2) VALUES ('$$fileName[$n])";
I am struggling with the [$n] part