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.

fclose function

closedir function


Comments

Popular posts from this blog

jQuery clickable div with working mailto link inside -

java - Getting corefrences with Standard corenlp package -

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -