I am trying to create zip file on the fly without actually making a zip on the server but it is not working. Here is what I have: header('Content-type: application/zip'); $filepath = "$files/files/$thefile"; $zip = new ZipArchive(); $zip->addFile($filepath, 'filename.swf'); echo $filepath; echo $zip->file(); Code (markup): which only makes an ascii file with the text of $filepath in it Can some one enlighten me as to what I am doing wrong? Any help is greatly appreciated!
Yeah I read that but it only talks about making the zip file on the server. I'm just trying to create it on the fly for download only.