file_put_contents log txt date FILE_APPEND file_put_contents log txt j

1
2
3
file_put_contents('./log.txt', date('d.m.Y H:i:s') . "\n", FILE_APPEND);
file_put_contents('./log.txt', json_encode($_SERVER, JSON_PRETTY_PRINT) . "\n", FILE_APPEND);
file_put_contents('./log.txt', json_encode($_REQUEST, JSON_PRETTY_PRINT) . "\n", FILE_APPEND);