...questo script non ha molto senso... vorresti fare un loop "infinito"? inoltre usi $_FILES['file']['tmp_name']... perchè? c'è un form?