Gemorroj / Archive7z

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

Cant not find 7za because I install p7zip with opkg #35

Closed flyshu closed 8 months ago

flyshu commented 8 months ago

Hi, thanks for very nice, useful package.

I installed p7zip from OPKG,so the Binary of 7-zip is in /opt/bin/7za, the Archive7z can not find Binary

How can I fix it ? Thanks.

Gemorroj commented 8 months ago

@flyshu hi. you can use the second parameter in the Archive7z constructor, for example.

$obj = new Archive7z('path_to_7z_file.7z', '/opt/bin/7za');
flyshu commented 8 months ago

@flyshu hi. you can use the second parameter in the Archive7z constructor, for example.

$obj = new Archive7z('path_to_7z_file.7z', '/opt/bin/7za');

It's OK. Thanks.