Re: writing to a file

From: Date: Fri, 23 Mar 2001 13:05:18 +0000
Subject: Re: writing to a file
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-45277@lists.php.net to get a copy of this message
On Friday 23 March 2001 06:17, you wrote: > how would that look on a code view? i plan to write the variable > $message on top of the existing data > > > Don't even bother with that previous answer. You have what you want > > to write in a string, $new. Read the file and put that into another > > string, $previous. Then concatenate the strings with the "." > > operator: > > > > $previous=$new . $previous > > > > and write $previous to the file. Well, he just gave you a detailed description of what to do. Everything else you need to know is in the manual. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "Never doubt that a small group of thoughtful, committed people can change the world... Indeed, it's the only thing that ever has." - Margaret Mead

« previous php.general (#45277) next »