Jump to content

[SOLVED] Take csv file and zip it


tripwater

Recommended Posts

Hello, I am taking info from a DB query, opening a file, writing to it and saving it as a .csv file. I need to then take this file and zip it in the same directory as csv file. It was requested that it be a .zip file not a .gz file.

 

I thought maybe I could do a system( zip( "file.csv" "file.zip" ) ); Is there anything like this available or a simple solution to what I am needing?

 

Thank you for any help with this.

Link to comment
https://forums.phpfreaks.com/topic/155409-solved-take-csv-file-and-zip-it/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.