I've got a file that I'm writing to and I cannot get file_put_contents to append the next entry on a new line, even after a newline character. What am I missing? I'm on a windows machine.
$file = 'test.txt'; $message = "test "; file_put_contents($file, $message, FILE_APPEND);
how are you viewing the contents of $file? if you're using notepad you can't see .
$file
1.4m articles
1.4m replys
5 comments
57.0k users