Sì esatto, se non ti serve tenere il file, lo prendi da $_FILES['fileUtente']['tmp_name'] (però occhio che avrà il nome tempraneo!!).
Forse è meglio se prima lo salvi col classico move_uploaded_file, poi lo metti nello zip e alla fine cancelli il file salvato...
Se non hai l'estensione zip sì, può essere un problema, ma quel che devi cercare è zlib, non zip...
Se nn hai l'estensione zlib:
codice:
PHP 5.2.0 and later
Linux systems
In order to use these functions you must compile PHP with zip support by using the --enable-zip configure option.
Windows
Windows users need to enable php_zip.dll inside of php.ini in order to use these functions.
Installation via PECL
Information for installing this PECL extension may be found in the manual chapter titled Installation of PECL extensions. Additional information such as new releases, downloads, source files, maintainer information, and a CHANGELOG, can be located here: http://pecl.php.net/package/zip.
The DLL for this PECL extension may be downloaded from either the PHP Downloads page or from http://pecl4win.php.net/
In PHP 4 this DLL resides in the extensions/ directory within the PHP Windows binaries download.