Page 1 of 1

create a zip folder by using php.

Posted: Sat Sep 20, 2008 5:45 pm
by rajeshatbuzz
Hi,

I have more than 3000 folders with their relevant contents and I want to create zip for each individual folder with their folder name.

Can you guide me how to achieve this by using php?

Raj
http://www.bangalorespice.com

Re: create a zip folder by using php.

Posted: Sat Sep 20, 2008 8:25 pm
by califdon
rajeshatbuzz wrote:Hi,

I have more than 3000 folders with their relevant contents and I want to create zip for each individual folder with their folder name.

Can you guide me how to achieve this by using php?

Raj
http://www.bangalorespice.com
PHP would surely not be my language of choice to do file system maintenance. PHP is a web server preprocessor language, used to create web pages on the Internet.

Re: create a zip folder by using php.

Posted: Sat Sep 20, 2008 8:44 pm
by josh

Code: Select all

escape( 'zip -r '.escapeShellArg($nameOfZipfile).' directory/');
or
http://us.php.net/zip