Page 1 of 1

[SOLVED] insert new line

Posted: Thu Aug 25, 2005 11:31 am
by winsonlee
$myFile = "hello.txt";
$fh = fopen($myFile, 'w') or die("can't open file");


$bodywrite = $bodywrite . "\npresent(".$presentinfo.").*";



after writing into a text file, the present dooesnt appear in newline. i wonder what went wrong ??

Posted: Thu Aug 25, 2005 11:37 am
by winsonlee
i manage to find the solution

should be \r\n