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
ZIP extraction permission
Moderator: General Moderators
- Technocrat
- Forum Contributor
- Posts: 127
- Joined: Thu Oct 20, 2005 7:01 pm
- Technocrat
- Forum Contributor
- Posts: 127
- Joined: Thu Oct 20, 2005 7:01 pm
Re: ZIP extraction permission
Bump...
-
BornForCode
- Forum Contributor
- Posts: 147
- Joined: Mon Feb 11, 2008 1:56 am
Re: ZIP extraction permission
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
).
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
- Technocrat
- Forum Contributor
- Posts: 127
- Joined: Thu Oct 20, 2005 7:01 pm
Re: ZIP extraction permission
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.