I am trying to do a simple PHP script that just appends "Hello\n" to the end of a file. Unfortunately, when I go to read the file after, it says "hello" followed by a strange square rather than the newline.
The same thing is happening with \r and \t.
This is the script I am using:
$username = "hello\n";
$addhandle = fopen('memberlist.txt','a');
fwrite($addhandle, $username);
fclose($addhandle);
Am I missing something? Maybe the file isn't opening properly or something.
I am using Windows 2000 with PHP 4.3.1 for Win32.
~ Paul