Gemorroj / Archive7z

This library provides handling of 7z files in PHP
GNU Lesser General Public License v3.0
89 stars 20 forks source link

Need help with installation #25

Closed ShadyMedic closed 3 years ago

ShadyMedic commented 3 years ago

Hi. Sorry for bothering you all, but I need some help with installing Archive7z.

My website runs on a 3rd party web hosting service. I uploaded all the files and it seems to be working fine except for one problem: It can't find the 7zip executable.

In Archive7zTrait.php, I changed the path specified in $binary7zNix, because there would be some problems with directory permissions, so I now just need the executable to upload. But I can't find a way to get it. I'm using Windows on my PC and I don't have access to the command line of the Linux server, that is used by the hosting service.

Could somebody please send me the executable, so I can upload it? Or if you think that this won't be enough, can you help me in any other way?

Gemorroj commented 3 years ago

Hi. To change the path to 7z better use second parameter of Archive7z constructor.

$obj = new Archive7z('somefile.7z', '/path/to/binary/7z');

You can try this p7zip.zip binaries (builded from https://github.com/jinfeihan57/p7zip/archive/v17.04.tar.gz). But I don't know if it will help.

ShadyMedic commented 3 years ago

Thanks a lot. Fixed the issue for me. :)