how do i appaned text at a new line in php.
my code is below but its appending on the same line. does anyone know how to fix this.
$myFile = "testFile.csv";
$fh = fopen($myFile, 'a') or die("can't open file");
$stringData = $Message.",".$value.",".$Company."<br>";
fwrite($fh, $stringData);
//$stringData = "New Stuff 2\n";
//fwrite($fh, $stringData);
fclose($fh);
my code is below but its appending on the same line. does anyone know how to fix this.
$myFile = "testFile.csv";
$fh = fopen($myFile, 'a') or die("can't open file");
$stringData = $Message.",".$value.",".$Company."<br>";
fwrite($fh, $stringData);
//$stringData = "New Stuff 2\n";
//fwrite($fh, $stringData);
fclose($fh);