ZIP extraction permission

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
User avatar
Technocrat
Forum Contributor
Posts: 127
Joined: Thu Oct 20, 2005 7:01 pm

ZIP extraction permission

Post by Technocrat »

I am using the php zip library to unzip some files. The problem I am having is those files (and folders) that are created are unable to be deleted by PHP. When trying to use touch to remove them I get operation denied. I have tried to use chmod() on them as well but that returns the same error. Any ideas on what I should do?

Thanks
User avatar
Technocrat
Forum Contributor
Posts: 127
Joined: Thu Oct 20, 2005 7:01 pm

Re: ZIP extraction permission

Post by Technocrat »

Bump...
BornForCode
Forum Contributor
Posts: 147
Joined: Mon Feb 11, 2008 1:56 am

Re: ZIP extraction permission

Post by BornForCode »

If you are using a LAMP combination check who created the files (is something related to Linux user management). If you have different users in that area like Apache user and PHP user i think a solution is to put them in the same group.

I also must say that i may be wrong since i stop working on Linux 2 years ago (strangely i became an IT analyst and a promising .Net developer :twisted: ).
User avatar
Technocrat
Forum Contributor
Posts: 127
Joined: Thu Oct 20, 2005 7:01 pm

Re: ZIP extraction permission

Post by Technocrat »

I believe your right. Problem is I have no control over that on this box. It's a typical shared host. I am just unclear as to why a file PHP "creates" it can't delete. Yet I can other files in the same folder.
Post Reply