note 29933 added to function.unlink
| From: | robotii at robotii dot co dot uk | Date: | Sat, 01 Mar 2003 08:51:00 +0000 |
| Subject: | note 29933 added to function.unlink | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-44687@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.
--
http://www.php.net/manual/en/function.unlink.php
http://master.php.net/manage/user-notes.php?action=edit+29933
http://master.php.net/manage/user-notes.php?action=delete+29933
http://master.php.net/manage/user-notes.php?action=reject+29933