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
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to