Anonymous

Anonymous
what must i set my permission to be for my images folder because i receive an eoor msg when i try to delete an image of an article saying to check my permission...which folder and what permission? meaning chmod to what number?

Status: offline

vinny

Site Admin
Admin
Registered: 06/24/02
Posts: 352
Since the image file is created by the webserver, in order to delete it from the shell you must either be logged in as the owner (probably one of nobody, apache, or httpd depending on your config) or you must be root. Alternatively you can write a quick php script that uses the unlink() php function to delete a file, then access that script from the web. i.e. <?php unlink(/path/to/file); ?> -Vinny