[PHP] Creating ZIP-File with password
Dear PHP-Friends, normaly its my job to find solutions about problems around PHP. Now, i have a problem, that seems to be unsolved in PHP. Actually i create some zip-files and this works fine. $zip = new ZipArchive(); $zip-open(./foo.zip, ZIPARCHIVE::CREATE); $dir = scandir (doc/); foreach($dir as $filename) { if($filename != . || $filename != ..) { $zip-addFile(doc/.$filename, doc/.$filename); } } $zip-close(); Now, the ZIP-files must be protect. There a important files included. Each site and forum seems to have no solution about this problem. Now, I need a solution or a workarround. Are the some people, who have some ideas? Regards Sebastian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Creating ZIP-File with password
Sebastian Hopfe wrote: Now, the ZIP-files must be protect. There a important files included. Each site and forum seems to have no solution about this problem. Now, I need a solution or a workarround. Are the some people, who have some ideas? You could just use the zip command line utility and the '-P' option. However, the zip password mechanism does not really provide much in terms of protection - if you really need the encryption, I would look elsewhere. (PGP, X509). /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Creating ZIP-File with password
Hmmm... its not possible to use this function, because i can't use the command line. now, i will try to crypt my data bevor i insert them into the zip file. but this needs more performance. i will wait for other comments. I will report my solution. regards Per Jessen [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] Sebastian Hopfe wrote: Now, the ZIP-files must be protect. There a important files included. Each site and forum seems to have no solution about this problem. Now, I need a solution or a workarround. Are the some people, who have some ideas? You could just use the zip command line utility and the '-P' option. However, the zip password mechanism does not really provide much in terms of protection - if you really need the encryption, I would look elsewhere. (PGP, X509). /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php