/    Sign up×
Community /Pin to ProfileBookmark

Zipping in PHP

Hey,
Is it possible to zip a directory using php? I’m trying to automate this so that a user can drop a folder on the server and it zips, and so that the admin doesn’t have to zip the folders himself…

Here’s to hoping,
Jaelan

to post a comment
PHP

4 Comments(s)

Copy linkTweet thisAlerts:
@JaelanauthorDec 13.2004 — Thanks for your response...

I used the code and it works!! at least, in so far as it zips the directory. My next question is, how can I edit that so instead of downloading the file to my computer, it downloads it to my server? I have a feeling it's an issue with the header() lines, but not sure how to fix it.

Thanks,

Jaelan
Copy linkTweet thisAlerts:
@JaelanauthorDec 13.2004 — NM

Sorry to waste your time, I had commented out the second part and was using the first and completely forgot the second part...it works..


It's monday...that sucks

Jaelan
Copy linkTweet thisAlerts:
@pyroDec 13.2004 — hehe... no problem. Glad you got it working. ?
×

Success!

Help @Jaelan spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.6,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...