Re: fwrite() Append Files
| From: | Daniel Brown | Date: | Fri, 27 Jun 2008 13:45:47 +0000 |
| Subject: | Re: fwrite() Append Files | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-276051@lists.php.net to get a copy of this message | ||
On Fri, Jun 27, 2008 at 7:01 AM, Wei, Alice J. <ajwei@indiana.edu> 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.
>
> Is there some sort of command that I could use to append files as I am writing them? I would
> provide the code if this is not clear enough.
This is generally your first stop when you have a question,
meaning you don't read the manual, right? There are a few
file-writing tools included in a basic PHP build.
Always RTFM before posting here.
http://php.net/file-put-contents
http://php.net/fwrite
--
</Daniel P. Brown>
Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just
$59.99/mo. with no contract!
Dedicated servers, VPS, and hosting from $2.50/mo.