credoc he non mi entri in questo giro....
while(file_exists($noext.$index.$ext))
{
$index=$index+1;
}

come faccio?