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

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -