Posted by Steve on 03/23/06 12:49
> I read here
> (http://groups.google.co.uk/group/mailing.www.php-dev/browse_frm/thread/f4bc2a7985cc4e/46c596d1917561f0?lnk=st&q=php+windows+permission+denied+unlink&rnum=8&hl=en#46c596d1917561f0)
> about an issue on a Windows server that caused the same problem I'm
> experiencing, because the file had recently been used by IIS.
> I tried add sleep(20), but that made no difference.
>
> If anyone has any suggestions, please post them here.
This is a known problem with IIS. You can't unlink/delete a file that
has been created during the lifetime of an IIS managed session -
whether that file was created using PHP, vbscript or whatever.
Your workaround is either to use throwaway files, that will all be
unlinked when the server is next restarted; or use some other
persistence method such as a database. Seek further info from an
appropriate comp.database.* group.
---
Steve
[Back to original message]
|