Appending string using php to a text file
Appending string using php to a text file
A very easy way to append string to a file using simple php script
$fn = “file.txt”; $file = fopen($fn, “a+”); $space.= “\n”; if($_POST[‘addition’]) fwrite($file, $_POST[‘addition’]); fwrite ($file, $space); fclose($file); ?>
Testing the form.