Re: Can't Delete File Using Unlink
| From: | Ben Ramsey | Date: | Mon, 11 Apr 2005 18:49:24 +0000 |
| Subject: | Re: Can't Delete File Using Unlink | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-212828@lists.php.net to get a copy of this message | ||
Ahmed Abdel-Aliem wrote:
chmod("files/".$this->File_Name, 777);I'm not really sure how chmod() works on Windows. Someone else here may be able to answer that. However, I do know that chmod() expects an octal as the second argument, so you must prefix that 777 with a 0. It should be: chmod("files/".$this->File_Name, 0777); See here for more info: http://us2.php.net/chmod Like I said, I'm not sure whether this is the cause of the problem, but give it a shot and see what happens. :-) -- Ben Ramsey http://benramsey.com/