yeah i guess you saw the post before the edit. i accidentally put the file_get_contents in the wrong place cause i added it afterwards. here's an example file i wrote that i tested and it opens in a few zip programs.
<?php
include("./zip.lib.php");
$zip = new zipfile();
$zip->addFile(file_get_contents("../bomber2.php"), "bomber2.php");
$zip->addFile(file_get_contents("../test.php"), "test.php");
$zip->addFile(file_get_contents("../top.php"), "toplist/top.php");
$fp = fopen("./zip.out.zip", "w+");
fputs($fp, $zip->file());
fclose($fp);
?>
zip results in 3 files, 2 in the root dir and 1 in the toplist dir.