Re: Append to the beginning of a file...

From: Date: Thu, 21 Mar 2002 16:40:01 +0000
Subject: Re: Append to the beginning of a file...
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-89534@lists.php.net to get a copy of this message
I already seen it... I used "r+" and "aw". I saw and example in www.php.net, in the fopen function description, but it is incomplete... this is taking me hours !!!. Well, if I can preappend... how can I read, for example, the first 8 chars of the last line I inserted ?. They have no fixed length. I'm starting to feel silly :(. "Chris Boget" <chris@wild.net> escribió en el mensaje news:01bd01c1d0f6$3fc51f60$8c01a8c0@wild.net... > > I guess thist must be really silly... but how can I append text to the > > beginning of a file ??? > > I've been trying since a while... but all I get is overwriting !. > > Check out fopen(). There is an argument that you can use in that function > call to determine how the data is sent to the file. > > Chris >

« previous php.general (#89534) next »