Re: fopen() question

From: Date: Tue, 04 Jun 2002 13:22:07 +0000
Subject: Re: fopen() question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-100558@lists.php.net to get a copy of this message
On Tuesday 04 June 2002 21:17, Jose Jeria wrote: > What I want to do is to the save a file with its new content, but when i > save the file > and the new content is less than it was before i opened it, you can see the > old content > after the new shorter content. How can i avoid this? > > Now using: > $fd = fopen($arrFileName, "r+"); $fd = fopen($arrFileName, "w"); > fwrite($fd, $arrFileContent); > fclose($fd); -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* The human animal differs from the lesser primates in his passion for lists of "Ten Best". -- H. Allen Smith */

« previous php.general (#100558) next »