Re: Check for open file
| From: | Steve Staples | Date: | Fri, 04 Mar 2011 15:09:50 +0000 |
| Subject: | Re: Check for open file | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-311665@lists.php.net to get a copy of this message | ||
On Fri, 2011-03-04 at 09:55 -0500, Daniel Brown wrote:
> On Thu, Mar 3, 2011 at 14:59, Ashley M. Kirchner <ashley@pcraft.com> wrote:
> >
> > Can PHP detect this, or should I look into some delayed
> > process of checking the file's modified time stamp versus current time and
> > not touch the file till a certain threshold has been reached (say 30 seconds
> > difference?).
>
> Give the native stat() function a spin:
>
> http://php.net/stat
>
> --
> </Daniel P. Brown>
> Network Infrastructure Manager
> http://www.php.net/
>
Depending on the size of the file, wouldn't this fall under the 2gb
limitation on windows 32bit OS? I ran into this problem on a project I
was working on, and ended up switching to Python (but that is a WHOLE
other conversation)
just food for thought, since I am not sure of the size of files they are
dealing with.
Steve