Re: fwrite() Append Files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Wei, Alice J. wrote:

> Hi,
> 
>   I wonder if anyone on the list could tell me how to append the files
>   as I am writing in them. I have a file that has no more than five
>   characters per line, and I would like to keep its spacing between
>   the lines. Right now I have the set up so that it could write in the
>   first line, but the problem is that all the lines after it never get
>   written in to the desired file.

You need to open the file in append mode = 'a+'.


/Per Jessen, Zürich


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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux