Forum Moderators: coopster

Message Too Old, No Replies

How can i upload and unzip the zip folders

         

vanik

8:37 am on Aug 1, 2008 (gmt 0)

10+ Year Member



Hi All,

I am uploading files and folders to a website.I uploaded zip folders successfully.But when i want to view the files in the zip folder it automatically downloaded.Can u please tell me how to extract or unzip the folder in the website and make it zip again for downloading.

Thanks in advance

MattAU

11:32 am on Aug 1, 2008 (gmt 0)

10+ Year Member



Have a look at [au2.php.net...]

You need the zip extension, which is not included in the standard PHP packages.

eelixduppy

1:55 pm on Aug 1, 2008 (gmt 0)



That or you can use the command line.

dreamcatcher

6:35 am on Aug 2, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you are on a linux box, the exec function is pretty fast. Thats what I use.

exec("unzip -o folder/file.zip -d folder");

dc