$filename ="pippo.zip";
$file = substr($filename, 0, strrpos($filename,'.'));
echo $file;