Re: unlink(), is it suppose to delete file???

From: Date: Tue, 20 Jul 2004 14:05:47 +0000
Subject: Re: unlink(), is it suppose to delete file???
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-191161@lists.php.net to get a copy of this message
This could happpen when the file is open by another process,... then file is deleted, but filename is still there until the file is not free of any open filedescriptors... I don't know exactly what processes happens in kernel when deleting the file, but it's something like that... and it could result in your problem... m. Scott Fletcher wrote:
I have a file that was 25 KB and I use the unlink() to remove the file. When I rechecked it, I found that the file is still there but it's filesize is 0 KB. Is unlink() suppose to remove the file or what?? FletchSOD


« previous php.general (#191161) next »