Alright, so I've managed to dynaically create/manipulate .zip files.
But I have one problem, I can only get the .zip file to be downloaded for the user.
But I want to save the .zip to a directory on my site. Any help?
$zipfile = new zipfile();
$filedata = implode("", file("files/" . $_FILES["file"]["name"]));
$zipfile->add_dir("files/");
$zipfile->add_file($filedata, "files/" . $_FILES["file"]["name"]);
header("Content-type: application/octet-stream");
header("Content-disposition: attachment; filename=zipfile.zip");
$file = $zipfile->file(); // This doesn't work
move_uploaded_file($file, "files/test.zip"); // ^^