<?
$string = "test";
$open = fopen("test.txt", 'a');
fwrite($open,"$string\n");
fclose($open);
?>
Published in: PHP
Download

Related snippets