Re: Deleting a read-only file (Windows)

From: Date: Wed, 26 Jun 2002 12:01:48 +0000
Subject: Re: Deleting a read-only file (Windows)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-103935@lists.php.net to get a copy of this message
> From: Neil Freeman <neil.freeman@asa.co.uk> > > 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? > I thought unlink() did not work on Windows. Notes in the manual suggest this for Windows: system("del name.ext"); -- Lowell Allen

« previous php.general (#103935) next »