Skip to content
Advertisement

Compressing ZIP files in a linux server with PHP

I am trying to create a .zip file of a folder in linux.

First I go where the compressed folder is:

JavaScript

The folder test has the folder testzip which should be zipped and sent somewhere else:

JavaScript

This should create testzip.zip. Somehow this doesn’t work.

Could anyone help?

Advertisement

Answer

Try with

JavaScript

instead of

JavaScript

— EDIT —

Reading the comment of Mark Adler, I realized that you’re using zip with 7-zip parameters.

So… are you sure that your zip is a link to 7z?

Anyhow, I suggest you to avoid ambiguities: is your intention is use 7z, explicit it with

JavaScript

If you want call the zip executable, use a correct zip syntax.

p.s.: sorry for my bad English

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement