want to add text

Links for php scripts

Moderators: macek, egami, gesf

New php-forum User
New php-forum User
Posts: 4
Joined: Thu Jul 03, 2003 7:26 am

want to add text

Postby reimar » Fri Jul 04, 2003 11:43 pm


I have the following problem: Therer is a site with text (e.g. a site to post news). With a form I want to add additional news (it all works). But the form deletes the file first before it writes the new news in it.

Is there a special command for adding text to another text (at the top of it)?

php-forum Active User
php-forum Active User
Posts: 266
Joined: Tue Apr 08, 2003 5:18 am
Location: Ottawa, Canada

Postby liquedus » Sat Jul 05, 2003 5:47 am

fopen with append instead of write to the file.

hope that helps. :)

Return to “PHP Scripts”

Who is online

Users browsing this forum: No registered users and 2 guests