Ver original$uploaddir = 'upload/';$ext = pathinfo($_FILES['img']['name'], PATHINFO_EXTENSION);$nombre = md5(rand() . time()) . "." . $ext;move_uploaded_file($_FILES['img']['tmp_name'], $uploaddir . $nombre);