Re: Re: Problem: Writing into Files?
| From: | Richard Heyes | Date: | Mon, 03 Aug 2009 10:05:52 +0000 |
| Subject: | Re: Re: Problem: Writing into Files? | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-296194@lists.php.net to get a copy of this message | ||
Hi
> The thing with this method is that it's just like the previous one; it opens
> then adds something. I'm assuming if again two visitors visit at the same
> time, this'd reset to zero.
No, the "a" mode (IIRC) handles file locking for you. Even if it
doesn't, the file won't be truncated, so you won't lose your count.
--
Richard Heyes
HTML5 graphing: RGraph - www.rgraph.net (updated 25th July)
Lots of PHP and Javascript code - http://www.phpguru.org