I'm trying to delete a folder through my php program. The code I'm using is:
$dir = "path/to/folder"; system("rm -rf $dir");
But it doesn'tseem to work. The same rm command works by itself, i.e through a telnet interface.
Thanks
The user that your Web server runs as probably doesn't (and shouldn't) have permission to do that.
so, going back to my question, how can this be done through php?
if the user/group that your webserver runs as doesn't have permissions, you can't delete it. Thus ... permissions, they exist for a reason.