watsmyname Posted April 27, 2010 Share Posted April 27, 2010 Hello i m passing a files like say "myaudio/1.mp3" and "myvideo/2.wmv", to ZipArchive class, for creating a zip. The class works well and creates a zip file, but it has folders inside it. Isnt there a way so that result zip contains files [1.mp3 and 2.wmv] only ?? Thanks Link to comment https://forums.phpfreaks.com/topic/199892-using-ziparchive-zipping-files-without-folders/ Share on other sites More sharing options...
cags Posted April 28, 2010 Share Posted April 28, 2010 Without seeing code it's hard to say, I think you just need to pass the second parameter as '1.mp3' etc. Link to comment https://forums.phpfreaks.com/topic/199892-using-ziparchive-zipping-files-without-folders/#findComment-1049790 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.