Re: Deleting a read-only file (Windows)
| From: | Neil Freeman | Date: | Wed, 26 Jun 2002 15:19:55 +0000 |
| Subject: | Re: Deleting a read-only file (Windows) | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-103978@lists.php.net to get a copy of this message | ||
According to the manual "This function is not implemented on Windows platforms". Gave it a go though and it works!
Cheers Dan,
Neil
Analysis & Solutions wrote:
************************************************************************** This Message Was Virus Checked With : SAVI 3.58 May 2002 Last Updated 14th June 2002 ************************************************************************** On Wed, Jun 26, 2002 at 11:34:10AM +0100, Neil Freeman wrote:-- ---------------------------- Work: neil.freeman@asa.co.uk Home: neil@curvedvision.com Web: www.curvedvision.com ----------------------------I'm trying to delete a file using PHP's unlink() function (on Windows). This works fine on writable files but fails when trying to delete read-only files. How can I delete read-only files? Is there a function available to change the permissions?Untested, but try setting permissions on the file via chmod('name', 0777). --Dan