Re: question..
| From: | Hans H. Anderson | Date: | Wed, 16 Aug 2000 15:57:37 +0000 |
| Subject: | Re: question.. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-12058@lists.php.net to get a copy of this message | ||
On Wed, 16 Aug 2000, Tauntz wrote:
> fputs("text.txt",$text); writes the $text to the beginning of the file
> how can I write text to end of a file ???
Really? I think fputs takes the file pointer as the first argument.
Nonetheless, the method for opening the file can determine where you the
text is written. You can also use ftell to position the data pointer
inside the file.
See the manual entry for fopen() for more on w, w+, r, r+, a, and a+.
Hans Anderson ~ me@hansanderson.com
PO Box 426, Missoula, MT 59806 | PHP, Search Engines, SQL
(800)397-9116 / (406)549-6524 | Databases, Flash Multimedia,
http://www.hansanderson.com | Killer Audio Production,
http://www.goofiness.com | Minty Fresh Breath.