Zipping files on the fly

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Sat Oct 08, 2005 8:29 pm    Post subject: Zipping files on the fly Reply with quote

Im not sure if anyone knows how to do this but i would like to zip files on my server on the fly but I dont know the PHP command to do this.

I would also like to password protect the files i create with this method.

Can you do this with whole folders or does it have to be seperate files selected to be put into the zip file?

Any help or code snippets are appriciated.
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
MonkeyNation
-


Joined: 05 Feb 2005
Posts: 921
Location: Cardiff

PostPosted: Sat Oct 08, 2005 8:39 pm    Post subject: Re: Zipping files on the fly Reply with quote

The Inquisitor wrote:
Im not sure if anyone knows how to do this but i would like to zip files on my server on the fly but I dont know the PHP command to do this.

I would also like to password protect the files i create with this method.

Can you do this with whole folders or does it have to be seperate files selected to be put into the zip file?

Any help or code snippets are appriciated.


As far as I can see, you can't zip using php, although I'm sure there are some command line applications you could call from php.

Only thing closely related is this. Otherwise I'd go with gzipping.
_________________
Back to top View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger ICQ Number
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Sat Oct 08, 2005 8:42 pm    Post subject: Reply with quote

OK, thanks for the link. I will have a read and see what options I have.

A friend has already tried to use command line on WinZip but found it easier with WinRAR so that might be my best option.

Thanks for the quick reply.
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
Moxxnixx
-


Joined: 21 Jun 2003
Posts: 1226
Location: Florida

PostPosted: Sat Oct 08, 2005 9:15 pm    Post subject: Reply with quote

Code class to create "zip" files on the fly
http://www.zend.com/codex.php?id=696&single=1
Back to top View user's profile Send private message Visit poster's website
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Sat Oct 08, 2005 9:17 pm    Post subject: Reply with quote

Useful but I dont want to use the Zend engine. I prefer my code the way it is.
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group