Hi.
I've been looking around for a whole day for a solution to my problem and searched not only this forum for an answer, but multiple others... I've seen multiple similar posts/questions, but none of them answered properly and/or relevant to my case. I've lost hope by now... so here's my last resort!
I make directories through php, with mkdir() (with permission properly set to 0777). Then, I proceed to upload files into those directories (yet again with permission properly set to 0777 (!) ), still through php, with move_uploaded_file(). Up to now, everything's fine.
The problem? I can't delete the uploaded files through php (with unlink)
Why?
-The created directories and uploaded file have 'apache' as owner.
-I can't upload the files through ftp_connect() (& etc.) since my host doesn't seem to even recognize that function: I could have uploaded the files as my ftp user, so much for that option.
-I can't chown the directories and/or the files (obviously... but before someone suggest it)
Hrm. The only thing I can do (the files are pictures) is show the pictures. But that's not enough for my purposes!
Is there really a solution to this problem? With all the reading I've doing, I don't think so.... but then again, I'm sure there should be!
Aside: I first thought that permissions were the problem, but when I figured out how to give 0777 to both directory and file, and still couldn't delete the file... it really threw me off. I mean, doesn't having all permission sufficient enough for whoever to do whatever he wants with a file? /me confused.
cheers,
tapootz.
PS. Oh, and yes SAFEMODE is enabled on the server... and no, there's nothing I can do about that.