Skip to content

Instantly share code, notes, and snippets.

@rahman541
Last active October 19, 2017 05:30
Show Gist options
  • Save rahman541/357c5ce89f21cefc6eb8329adc0ee388 to your computer and use it in GitHub Desktop.
Save rahman541/357c5ce89f21cefc6eb8329adc0ee388 to your computer and use it in GitHub Desktop.
Log to file will be write D:/log_DATE.txt

Simple Log to file. File will be write D:/log_DATE.txt

Insert this line of code:

$logs = '$name : '.$name.'; $value : '.$value.PHP_EOL;
file_put_contents('D:/log_'.date("j.n.Y").'.txt', $logs, FILE_APPEND);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment