Hey guys, how do you write a zip resource to disk opened with zip_open / zip_read... I'm not quite sure how this works thanks for any help
Jeff
writing a zip resource to disk as a file
Moderator: General Moderators
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
hey guys I actually figured out how to do what I need to do... Sorry I should do a bit more research before posting up here, it just took me 15 mins or so to find out what I needed to do.. Baiscaly I just had to get the entire contents of the file with $buf = zip_entry_read($zip_file, zip_entry_filesize($zip_file)); and then use fwrite(....)
Ask the bear..
(a guy I worked with had a proff that had a stuffed bear outside his office.. he would make you ask it your question before ever talking to you 
Ask the bear..
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA