note 35616 added to function.unlink
| From: | cdechery at msn dot com | Date: | Mon, 08 Sep 2003 14:57:45 +0000 |
| Subject: | note 35616 added to function.unlink | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-55827@lists.php.net to get a copy of this message | ||
I found out I can't delete files if I inform it's full path, like
"/home/mysite/www/htdocs/dir/image.jpg"...
this happens both in Windows and Linux.
So I tried using the relative path and it worked perfectly (also for both Win and Linux)...
instead of the full path I'd have "../../dir/image.jpg" or something...
note: this also applies to rmdir().
----
Manual Page -- http://www.php.net/manual/en/function.unlink.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+35616
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+35616&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+35616&report=yes