Zip (Create Archive)

Added by Luciano Barbosa 12 months ago

Hi!

I have a new question.
What must I do to the "create archive" option work?
I have to install something on server?

Thanks for help!

Luciano


Replies (5)

RE: Zip (Create Archive) - Added by Troex Nevelin 12 months ago

On unix/linux server you need to install zip utility http://www.info-zip.org/Zip.html

You must be able to run it on the server:

$ zip --help
Copyright (c) 1990-2008 Info-ZIP - Type 'zip "-L"' for software license.
Zip 3.0 (July 5th 2008). Usage:
...

RE: Zip (Create Archive) - Added by Luciano Barbosa 12 months ago

Hi again,
I'm running PHP over windows 08 server and have no archiver software installed.

With the link you sent earier i managed to get the zip300xn-x64
Where should i place the content of this package and if i have to install it where should i do so.

I don't necessarily have to get the ZIP working. If you recomend any other, who knows, TAR GZIP.

Thanks again

Luciano

ZipFolder.png (42.4 kB)

RE: Zip (Create Archive) - Added by Troex Nevelin 12 months ago

The zip.exe must be in PATH environment variable passed to PHP, you can find it in phpinfo().
I don't know how PATH is it implemented in windows, and I believe this depends on the php build for windows. As I know different software like WAMP use some built-in paths and use should refer it's documentation. If you are using cygwin than you need to install zip using cygwin.

All other archivers work the same as zip, you just need tar, gzip, bzip2, 7z to be in your PATH.

RE: Zip (Create Archive) - Added by Luciano Barbosa 12 months ago

Thanks!!!

I put the file in the right place and it worked!

RE: Zip (Create Archive) - Added by Michael M 4 months ago

yum install p7zip

Luciano Barbosa wrote:

Hi!

I have a new question. What must I do to the "create archive" option work? I have to install something on server?

Thanks for help!

Luciano

(1-5/5)