The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.
I'm pretty sure it's something to do with the nl2br. But I'm also pretty sure that I've never had this problem before, and I've set this sort of system up numerous times. Is there some hidden little PHP bug that I don't know about yet? I can always solve it by using a function to take one character away from the string, but was wondering if it's a common occurance?
I can remember encountering this in the past, although that was because of me not filtering out \r. Try doing the conversion manually;
$string=ereg_replace("\n","
",$string);
$string=ereg_replace("\r","",$string);
Supposedly, thats all nl2br is anyway (well it leaves in the \n but just depends if you care about the raw html being formatted).
> When you say it adds a blank line at the end, I presume you mean
> you've got an extra carriage return at the end. Is it a
> \n that you get extra of?
The
. It's easy enough to get rid of, but why in the first place?
or a \n that you get extra of?
I'm pretty sure it's something to do with the nl2br. But I'm also pretty sure that I've never had this problem before, and I've set this sort of system up numerous times. Is there some hidden little PHP bug that I don't know about yet? I can always solve it by using a function to take one character away from the string, but was wondering if it's a common occurance?