PHP permissions after file copy -
i have problem here hours cannot figure out. have script uploads pictures server. offer possibility erase pictures uploaded ones. working fine.
however, user may want 'publish' these pictures. when does, copied new folder. if wants edit gallery pictures copied temporal folder. after happens, files cannot erased anymore, php doesn't want to. checked permissions , same, , i'm obtaining owner of file via fileowner() , it's same owner both when pictures can erased , when can't... ideas on causing this?
thank you!
each time working pictures, making sure close file handle and/or directory handle? if not, try doing , see if pictures can deleted.
Comments
Post a Comment