Page 1 of 1
ZIP extraction permission
Posted: Sat Jun 27, 2009 1:33 pm
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
Re: ZIP extraction permission
Posted: Wed Jul 01, 2009 11:13 am
by Technocrat
Bump...
Re: ZIP extraction permission
Posted: Wed Jul 01, 2009 11:17 am
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

).
Re: ZIP extraction permission
Posted: Wed Jul 01, 2009 11:26 am
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.