I am able to create zip file using ziparchive lib in php. Is there any way I can specify a password for the zip files that I create? Is there any other custom library that c
use this:
system('zip -P password zipfile.zip file.extension');
pass is the password, and file.extension will be zipped into zipfile.zip.
works on Windows and Linux
shell_exec('zip -qjP <password> <archive> <file1> <file2> ... <file_n>');