Delving into the world of PHP for the first time. I'm trying to do some basic file output stuff, here's my code.
Works fine, except I can't get it to insert a newline. Any attempt at escape characters are ignored and put into the file.
Thanks,
Nick
Code:
<?php
$file = fopen("test.txt", "a");
fwrite($file,$comment);
?>
Works fine, except I can't get it to insert a newline. Any attempt at escape characters are ignored and put into the file.
Thanks,
Nick