adding numbers in a text file

From: Date: Sun, 21 Apr 2002 22:20:21 +0000
Subject: adding numbers in a text file
Groups: php.general 
Request: Send a blank email to php-general+get-93913@lists.php.net to get a copy of this message
I have a simple count file named count_db that contains ONLY the following: { 'total' => 39540000 } I need to open file, find numbers in the file, add $newnumbers to existing numbers. Then write these new numbers over the original numbers and close the file. Also while I'm doing this a counter script will be reading this file, but NOT writing to it. Will the file need to be locked while adding $newnumber to it? Thanks Craig ><> westerman@chanuteks.com

« previous php.general (#93913) next »