i seem to have a very simple yet unusual error
im currently trying a code which outputs strings to a .txt file
here's part of the code
<?php
$output = "HELLO WORLD\nHELLO WORLD";
@ $fp = fopen ("$DOCUMENT_ROOT/files/a.txt","w",1);
if (!$fp){
echo "error with file open";
}
else{
fwrite($fp,$output);
}
fclose($fp);
?>
the characters are outputed to the a.txt succesfully except for the \n character appears as a blackbox and not as a new line
badly need ur help guys,coz i cant kick off with my work without solving this out.