Re: unlink(), is it suppose to delete file???
| From: | Scott Fletcher | Date: | Tue, 20 Jul 2004 14:19:52 +0000 |
| Subject: | Re: unlink(), is it suppose to delete file??? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-191167@lists.php.net to get a copy of this message | ||
Yea, got that. Fixed hte problem. Thanks....
"Miroslav Hudak" <php@maniax.sk> wrote in message
news:40FD26BB.7080604@maniax.sk...
> 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
> >