# PHP create password protected ZIP files?

**URL:** <https://forum.kirupa.com/t/php-create-password-protected-zip-files/235350>\
**Category:** programming\
**Created:** [August 10, 2007, 12:22pm UTC](https://forum.kirupa.com/t/php-create-password-protected-zip-files/235350 "2007-08-10T12:22:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zaid\_W1red](https://avatars.discourse-cdn.com/v4/letter/z/cab0a1/32.png) [@Zaid\_W1red](https://forum.kirupa.com/u/Zaid_W1red)\
**Post date:** [August 10, 2007, 12:22pm UTC](https://forum.kirupa.com/t/php-create-password-protected-zip-files/235350/1 "2007-08-10T12:22:33Z")

</div>

Does anyone know how to do this?

Creating the zip file is simple enough, and I’d guess using the command line might be the best way to add a password but im not sure how to go about this?

Any leads? Tips? Advice?

Zaid
