Vivid Lust Posted October 4, 2008 Share Posted October 4, 2008 Hi, I'm using this class: http://www.weberdev.com/get_example-4499.html And the following code: include("zip.class.php"); $ziper = new zipfile(); $ziper->addFile("file.html","test.txt"); //array of files $ziper->output("myfile.zip"); After download the myfile.zip, what is inside it is: test.txt (and the file contains "file.html") And also it crashes my computer. Any help to sort this out please??? Thanks. Link to comment https://forums.phpfreaks.com/topic/127040-zip-class-thing-not-working/ Share on other sites More sharing options...
Vivid Lust Posted October 5, 2008 Author Share Posted October 5, 2008 Anyone? Link to comment https://forums.phpfreaks.com/topic/127040-zip-class-thing-not-working/#findComment-657484 Share on other sites More sharing options...
Bendude14 Posted October 5, 2008 Share Posted October 5, 2008 Crashes your computer? Can you be more specific? does it get stuck in a ever ending loop or give an error of some kind? Does everything work as you want except the computer crashing? Link to comment https://forums.phpfreaks.com/topic/127040-zip-class-thing-not-working/#findComment-657512 Share on other sites More sharing options...
Vivid Lust Posted October 5, 2008 Author Share Posted October 5, 2008 After downloading the zip file and opening up the only file inside it, the computer crashes, windows explorer needs to restart... Link to comment https://forums.phpfreaks.com/topic/127040-zip-class-thing-not-working/#findComment-657533 Share on other sites More sharing options...
ghostdog74 Posted October 5, 2008 Share Posted October 5, 2008 you can use zlib instead. Link to comment https://forums.phpfreaks.com/topic/127040-zip-class-thing-not-working/#findComment-657545 Share on other sites More sharing options...
DarkWater Posted October 5, 2008 Share Posted October 5, 2008 And for the record, you didn't actually pass an array into the function...You'd need to use the array() construct: $ziper->addFile(array('file.html', 'test.txt')); Link to comment https://forums.phpfreaks.com/topic/127040-zip-class-thing-not-working/#findComment-657669 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.