Appending files in PHP… can't get new line (\n) to work with variables?

Instead of hard-coding the newline, you can use the standard PHP_EOL constant, which is the end-of-line marker for the platform you're executing the script on.

Instead of hard-coding the newline, you can use the standard PHP_EOL constant, which is the end-of-line marker for the platform you're executing the script on: fwrite($f, $usrname . PHP_EOL); Of course, if you want the file to be portable to other operating systems, then you should pick an EOL marker and stick with it, ignoring what the host platform uses.

Thanks, works great! – Ken Mar 26 at 19:53.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions