963 eredeti hozzászólása
Üdv
De ez írja itt:
"This function only sets the password to be used to decompress the archive; it does not turn a non-password-protected ZipArchive into a password-protected ZipArchive."
Ez csak beállítja a jelszót a használathoz de nem nem csinál jelszóval védett zippet.
Ír egy ilyen dolgot
"working code:
$file = 'file_name_to_be_compressed.extension'
system('zip -P ZIP_PASSWORD '.$file.'.zip '.$file);"
Ez OK, de ez szerintem csak saját linux serveren fut ahol nincs tiltva a system parancs nálam meg ezt írja php info:
"disable_functions passthru,exec,system,proc_open,shell_exec,pcntl_ex ec,pcntl_fork,popen,pclose,proc_nice,proc_terminat e,proc_get_status,proc_close,posix_kill,posix_getp wuid,posix_getgrgid,posix_getuid,posix_geteuid,pos ix_getegid,posix_getgid,posix_uname,escapeshellcmd ,escapeshellarg,ini_alter,symlink"
De köszi a segítséget.
Könyvjelzők