I am trying to insert text into a file. I am having trouble with the newline operator in php. Simply put, it doesn't work.
Here my code for the page (it's a pretty simple page):
<?php
//PHP code starts here
$file = fopen("inset.txt","w");
fwrite($file,"worked \n worked");
//PHP code ends here
?>
and here is the output:
worked worked
once again: THIS IS A TEXT FILE, NOT AN HTML PAGE.
any ideas?