Re: appending to XML file before closing tag

From: Date: Tue, 25 Jun 2002 15:12:08 +0000
Subject: Re: appending to XML file before closing tag
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-103786@lists.php.net to get a copy of this message
Yes, that worked. Nice and effective solution. Thank you. On Tue, Jun 25, 2002 at 09:51:21AM -0400, Erik Price wrote: <snip> > > If you know for a fact that the ending tag for each file is consistent > and always that same tag, here's an idea. Determine or specify the > length of the ending tag (in other words "</html>" would be a length of > 7 [characters]). Now move your file pointer to (file's total > characters - length) so that it is immediately before the ending tag. > Append your data, then manually append the ending tag. > <snip> -- Bill Amsterdam, NL

« previous php.general (#103786) next »