How to Extract password protected zip file?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
rajsekar2u
Forum Commoner
Posts: 71
Joined: Thu Nov 20, 2008 4:23 am

How to Extract password protected zip file?

Post by rajsekar2u »

Hi,

Is there a way to extract password protected zip file.

Please help me in this. Its very urget.

Thanks in advance.
User avatar
Eran
DevNet Master
Posts: 3549
Joined: Fri Jan 18, 2008 12:36 am
Location: Israel, ME

Re: How to Extract password protected zip file?

Post by Eran »

You need the password, obviously
Otherwise you might trying something not completely kosher..
rajsekar2u
Forum Commoner
Posts: 71
Joined: Thu Nov 20, 2008 4:23 am

Re: How to Extract password protected zip file?

Post by rajsekar2u »

Thanks for the reply. I've the password for the zip file.

Please let me know to do it.
User avatar
Eran
DevNet Master
Posts: 3549
Joined: Fri Jan 18, 2008 12:36 am
Location: Israel, ME

Re: How to Extract password protected zip file?

Post by Eran »

Are you serious.. ?
open it using an extraction program like 7zip, and when asked for the password, input it..
buckit
Forum Contributor
Posts: 169
Joined: Fri Jan 01, 2010 10:21 am

Re: How to Extract password protected zip file?

Post by buckit »

am going to assume you are asking how to do it from PHP?

well... the easiest would probably be to use exec() to run a zip program with command line switches to extract the zip with the password.
User avatar
Eran
DevNet Master
Posts: 3549
Joined: Fri Jan 18, 2008 12:36 am
Location: Israel, ME

Re: How to Extract password protected zip file?

Post by Eran »

If you meant using PHP (should have said so), I apologize :)
buckit's solution is the way to go
rajsekar2u
Forum Commoner
Posts: 71
Joined: Thu Nov 20, 2008 4:23 am

Re: How to Extract password protected zip file?

Post by rajsekar2u »

Can you give me an example for it.
Post Reply