Alright, this probably sounds stupid to most of you, but I am having a problem inserting a newline character into a file on a windows 2000 machine...
$filename = 'somefile.ini';
$fp = fopen($filename,'a');
while(list($key,$val) = each($userString)){
$val = str_replace("/\\\\/","\\",$val);
$val .="\n";
fwrite($fp,$val,strlen($val));
}
fclose($fp);
anyhow, if anyone can tell me what I'm doing wrong or a better way to do it, then thanks in advance.
Also...
I have also looked at parse_ini_file($filename), but the ini file contains pipes (|), so i get an error when it finds a pipe...