You are here: Re: How to get to know if file is currently being written by another app? « PHP Programming Language « IT news, forums, messages
Re: How to get to know if file is currently being written by another app?

Posted by saul on 11/13/07 17:01

In article <1194812238.516514.122610@k79g2000hse.googlegroups.com>,
102degrees@102degrees.com says...
> On Nov 10, 9:46 am, alexan...@gmail.com wrote:
> > I run some remote binary with php script in background. The binary
> > creates some big files - a lot of files, they are being written 2
> > days, one after another, by chunks.
> >
> > I output window where I display a list of these files by another php
> > script. I must show only those of them that are COMPLETELY DONE. How
> > can I do this?
> >
> > I don't have access to binary sources.
> >
> > OS is Solaris.
>
> What if you checked out the 'flock' functions of PHP? You might be
> able to lock the file, then check to see if they're locked by the
> other script... etc.
>
>

Didnt I read somewhere that flock is unreliable?
Any info on that would be appreciated.

saul

 

Navigation:

[Reply to this 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

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