Hi,
I am sure a lot of people have encountered this problem, but I haven't been able to track down a clear answer yet.
I am using PHP to upload files into directories also created by PHP. The permissions on the directory are no longer a problem and I am now able to delete tehm using an FTP program. But the files themselves retain a 0755 permission level and record an owner as 48 (apache).
Becasuse of this, if I try to use PHP to delete the files, I get a SAFE MODE warning that says of course:
The script with uid 518 cannot access a file owned by uid 48.
But here's the thing. I used posix_getuid to check who the owner is of the script that is trying to perform the delete and I get 48(apache). So whats the problem???
Is there any other way to delete files apart from unlink()?? BTW. I am working on a shared server so I am sure that turning safe-mode off is not an option
Thanks in advance!
Shaheeb R.