/    Sign up×
Community /Pin to ProfileBookmark

Is there a way to…

…somehow zip, or batch, files together via php? I’m wanting to create an auto-back-up tool of my site, since a lot of people contribute to it and it’s not impossible that the network could go down. I can happily tell a script to go find all the files, but is there any way in PHP to group them and send them back as one file to write somewhere? I imagine not, but hey. If not, is there some other accepted standard for this sort of thing?

Cheers in advance.

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@sciguyryanSep 07.2004 — I'm no expert but, look in the php manual (www.php.net/manual/en) In feature reference and then look for the topic called Zlib Compression Functions and that should help you.


RyanJ
Copy linkTweet thisAlerts:
@mityaauthorSep 07.2004 — Thanks Ryan, I'll do that.
Copy linkTweet thisAlerts:
@sciguyryanSep 07.2004 — No Problem.

RyanJ
×

Success!

Help @mitya 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.18,
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,
)...