Re: Overwriting specific lines in text fileswithoutrewriting the whole thing.
| From: | John Biesnecker | Date: | Mon, 26 Jun 2000 21:11:12 +0000 |
| Subject: | Re: Overwriting specific lines in text fileswithoutrewriting the whole thing. | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-3209@lists.php.net to get a copy of this message | ||
----- 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:09 PM
Subject: Re: [PHP-GENERAL] Overwriting specific lines in text
fileswithoutrewriting the whole thing.
> 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? :-(
>
> --
Well, I think I can do DBMs, but from what I understand they're not
particularly multi-user safe (or am I mistaken?