darkjedi86 wrote:
I have an older version of php3, and that won't
work on it.
Then your PHP version is extremely old. I recommend that you upgrade to a modern version; otherwise, there will be a lot of issues like this.
You could try with str_replace():
$new_string=str_replace(
"\n",
'<br>',
$string_containing_carriage_return
);
Or you could use ereg_replace() (see the manual).