[PHP] unlink function

2002-10-31 Thread Andres, Cyrille
Hello everyone, I upload some files on my server. If the number of lines of a file exceeds 159, I want to erase the file. Actually the unlink() function doesn't work, I have this error : Warning: Unlink failed (Permission denied) in D:\Data\WebSSL\tm\RFP\upload2.php on line 78. My code is :

Re: [PHP] unlink function

2002-10-31 Thread Adam Voigt
Unlink function isn't broken, you just don't have the correct rights set on the files, so PHP can't erase them, fix the permissions and that will take care of that error. Adam Voigt [EMAIL PROTECTED] On Thu, 2002-10-31 at 12:46, Andres, Cyrille wrote: Hello everyone, I upload some files on

Re: [PHP] unlink function

2002-10-31 Thread Evan Nemerson
It probably isn't supported in windows. Unlink is (in C) in the unistd.h file. It provides a way to remove a file based on the unlink syscall (which i sincerly doubt is available from Win32). Looking at php.net/unlink... yep fourth comment: unlink() function dosen't work with windows98, but it