Re: Overwriting specific lines in text files without rewriting the whole thing.

From: Date: Mon, 26 Jun 2000 22:21:41 +0000
Subject: Re: Overwriting specific lines in text files without rewriting the whole thing.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-3224@lists.php.net to get a copy of this message
on 6/26/00 1:53 PM, John Biesnecker at amraam@ao.net wrote: > Unfortunately, I have something like 1100 pages, if you count all of the > dynamically generated pages... I'm sure it's possible, and I think I could > do it in C or something, but I've looked over the PHP filesystem functions a > bunch and can't see it... I have been reading this thread and think that going with DBM is probably your best bet given you availible options. However, if you are hosting > 1000 pages, and it sounds like you are doing some fairly serious content, etc. Perhaps it would be a good idea to move to a service provider that can give you access to a SQL database? Another solution that you may want to consider would be to not have the counters run in real-time. I.e. parse your Apache logs or something every night... giving you a report and/or a text file(s) that you can then read and place an actual counter on the pages if need be. -k

« previous php.general (#3224) next »