I've been using the "shell_exec" command to unzip files in my script but today my host closed that command, citing security issues. I have been looking for an article on how to do unzip a password protected zip file using strictly php, but can't find any. I would be very happy if someone could point me in a direction where I could learn how to do this. Maybe a better question is, is it possible?

Thanks!

    Is there a reason they have to be password protected? or for that matter a zip file?

      The site is a real estate site and these are the database and image files provided by the MLS service. The file format is beyond my control.

        I have never had to do it. But I went over to the php.net Zip Manual and there is a what looks to be a very useful comment.

        Just use your browsers search to search the page for "password". The comment has a useful tip as well the 2 comments above it look to have some tips in regards to it also

          Krik,

          Thanks for the response. I had looked there originally, but it looks like those comments use the same idea of running a linux or unix command through php. I can not do this because of my host and was looking for any type of work around.

          Thanks.

            You know since I started designing webpages (back in the mid 90's) I have switched the company I use for hosting client sites 5 times. It seems that at some point they get dumb.

            So maybe the idea is to switch hosts. Or just for this one client find a host that allows it.

              Ok, I was hoping to avoid that. I guess that is starting to look like the only option.

                6 days later
                Write a Reply...