Append Text to File using PHP April 15, 2021 PHP 0 Comments 484 Views fopen & fwrite functions <?php $filename = 'test.txt'; $fp = fopen($filename, 'ab'); fwrite($fp, 'Hello'.PHP_EOL); fclose($fp);
Leave a Comment
Cancel reply