hi all
Got a slight problem deleting files using php, Got a site which lets users read newletters, what i want to do is let an administrator delete these newsletters once new once are published.
One of the problems i have come across is that it wont let the administrator delete the files as the permission are not currently set on the unix box, if i change the permission to 775 , it all works , but that means anyone who belong to the same group can log in to the unix box change directory to where these newsletters are stored and delete them.
Is there a way in php where i can change the permissions to 775 , delete the file and then revert the permission back to 755.
does the above make sense , anyone got any idea how to do that
Thks
Mike Desouza