Re: Can't Delete File Using Unlink

From: Date: Mon, 11 Apr 2005 18:36:03 +0000
Subject: Re: Can't Delete File Using Unlink
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-212822@lists.php.net to get a copy of this message
On Apr 11, 2005 8:28 PM, Ben Ramsey <lists@benramsey.com> wrote: > Ahmed Abdel-Aliem wrote: > > i have a problem with deleting files, i use windows XP and installed > > on it apache server & PHP 5.1 > > i use unlink($file) to delete files but it doesn't work while it works > > fine on my webhosting which is on linux machine > > is there another function to use to delete files under windows instead > > of link ?? > > The webserver needs to have permission to modify the file that you are > trying to delete. Check the file and directory permissions by > right-clicking the directory and going to properties. You will probably > need to give the user that controls apache either "full" or "modify" > permissions to the Web directory. > > In general, permission settings under Windows suck. > i tried that, when a file is being uploaded it becomes read-only, so it can't be deleted, how can i make it not read-only by default ?

« previous php.general (#212822) next »