I have a search program that records errors to a txt file, and I have it so that it appends the file for a error log. But, each appendage is added after the next one, but I want to make them add to the next line. Like:
Error 1
Error 2
Instead of error 1error2. I have tried using \r and \n, but they just post little unknown character boxes in the file instead. What am I doing wrong?
touch("error.txt");
$file_name = "error.txt";
$file_pointer = fopen($file_name, "a");
fwrite($file_pointer, "User found no keyword searches with $query\r");
fclose($file_pointer);