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");
?>