note 29933 rejected from function.unlink by betz
| From: | betz@php.net | Date: | Sat, 01 Mar 2003 10:37:59 +0000 |
| Subject: | note 29933 rejected from function.unlink by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-44691@lists.php.net to get a copy of this message | ||
If you have write permission to the directory, you can unlink files, but you can't unlink
non-empty directories you can't write to. does anybody know a way round this, perhaps using
chown or like to change the directory owner first. I've tried everything, and i can do it if i
logon interactively, but i want some way of being able to do it in php.
something equivalent to
chown user_id some_dir
rm -r some_dir
without using system or exec.