Creating ZIP-File with password

From: Date: Mon, 12 Nov 2007 17:08:43 +0000
Subject: Creating ZIP-File with password
Groups: php.general 
Request: Send a blank email to php-general+get-264370@lists.php.net to get a copy of this message
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

« previous php.general (#264370) next »