i'm using the following code to save a intranet address into .mls file
which is file in text format
$data1=addslashes($data['url']);
fwrite($fp,"\"");
fputs($fp, stripslashes($data1) );
fputs($fp, "\" \n");
if ($data['url2']) {
$data2=addslashes($data['url2']);
fwrite($fp,"\"");
fputs($fp, stripslashes($data2) );
fputs($fp, "\"\n");
}
but the problem is that there is no new line
and both records, $data1 and $data2 are on the same row
why \n does not work in this case