[eluser]Alexandro Corrêa[/eluser]
Hi Everyone!
I need write some information to a text file. Each information should stay in one different line. When I insert '\n' it is printed as text, not a newline.
Code:
$log1 = "Info 1\n";
$log2 = "Info 2\n";
write_file('.\app\logs\envio.txt', $log1, 'a');
write_file('.\app\logs\envio.txt', $log2, 'a');
Using this, the file is written, but the result is in just one line, not two lines with the information. I'm breaking my head to find a solution but until now I couldn't...
Thanks for your help!
Alex.