php - Permission error - cannot delete uploaded files from FTP -
i have found several posts asking similar questions situation different. in upload class i'm creating directory user's id mkdir
, calling move_uploaded_file
move tmp file /uploads/id/file
after performing several other checks. problem can't seem delete file once it's been uploaded php directory created mkdir
. can delete files uploaded root of /uploads
directories created in /uploads
. testing purposes, i've used permission 0777
mkdir
, i'm calling chmod
on file 0777
after calling move_uploaded_file
.
i thought because php uses linux user starts apache httpd upload files, , signing ftp different user, still able delete files uploaded root of /uploads
regardless of user. i've made sure /uploads
owned same user starts apache i'm still not having luck. @ appreciated.
Comments
Post a Comment