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

From: Date: Mon, 26 Jun 2000 21:09:33 +0000
Subject: Re: Overwriting specific lines in text fileswithout rewriting the whole thing.
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-3208@lists.php.net to get a copy of this message
At 5:01 PM -0400 2000-06-26, John Biesnecker wrote:
----- Original Message ----- From: Paul DuBois <paul@snake.net> To: John Biesnecker <amraam@ao.net>; <php-general@lists.php.net> Sent: Monday, June 26, 2000 5:01 PM Subject: Re: [PHP-GENERAL] Overwriting specific lines in text fileswithout rewriting the whole thing.
At 4:22 PM -0400 2000-06-26, John Biesnecker wrote:
I have created rather simple file-based page hit counter for my site (because I can't use SQL or anything else). Currently I am reading the entire thing into an array using file(), finding the correct line, editing it and writing the entire thing back into a file.
By the way, why can't you use "SQL or anything else"? ISP doesn't support them?
Exactly. I'd love to do it in a database (I administer a Cold Fusion server where I work and am rather familiar with that), but I have to work with what my ISP'll give me.
Not even DBM support? :-( -- Paul DuBois, paul@snake.net

« previous php.general (#3208) next »