Create Password protected Zip file in PHP
Posted by Raj
Create Password protected Zip file in PHP.
In this article,I will explain how to create password protected zip file using php script.
First you will have to Install 7zip Software.
Example:
<?php
$path=$_SERVER['DOCUMENT_ROOT'];
$pwd = "123";
$zipfile = $path."test.zip";
$filearch = $path."test";
system("7za.exe a -tzip -p$pwd $zipfile $filearch");
?>
In this article,I will explain how to create password protected zip file using php script.
First you will have to Install 7zip Software.
Example:
<?php
$path=$_SERVER['DOCUMENT_ROOT'];
$pwd = "123";
$zipfile = $path."test.zip";
$filearch = $path."test";
system("7za.exe a -tzip -p$pwd $zipfile $filearch");
?>
This entry was posted on October 4, 2009 at 12:14 pm, and is filed under
Password protected Zip file in PHP,
PHP,
PHP interview questions and answers,
zip file in php
.You can leave a response, or trackback from your own site.