Reply to Re: PHP/IIS: File Read/Write OK, File Unlink Denied

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация