Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

appending txt file from php

$log_content="This line is logged on 2020-08-14 09:55:00";
$myfile = fopen("log.txt", "a") or die("Unable to open file!");
fwrite($myfile, $log_content);
fclose($myfile);
Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #appending #txt #file #php
ADD COMMENT
Topic
Name
5+8 =