talor123 Posted April 6, 2008 Share Posted April 6, 2008 Hey, could comeone tell me how to make it so when you use the "fwrite" function.. like so: $message = $_GET["message"]; $file = "$messages.html"; $handle = fopen ("$file", "w"); fwrite ($handle, "Message: $message <br>"); that when it writes the message to "messages.html" it will not overwrite the original "$message", it will add it to the next line... thanks Link to comment https://forums.phpfreaks.com/topic/99777-solved-fwrite-problems/ Share on other sites More sharing options...
quiettech Posted April 6, 2008 Share Posted April 6, 2008 I believe you mean it will not overwrite $messages, not the string $message? Open the file in append mode: $handle = fopen ("$file", "a"); Link to comment https://forums.phpfreaks.com/topic/99777-solved-fwrite-problems/#findComment-510295 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.