Topic awaiting preservation: Hard Enter |
|
---|---|
Author | Thread |
Paranoid (IV) Inmate From: |
posted 04-08-2003 22:06
ok, i've got a guestbook, |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 04-08-2003 22:31
Alright first check out this thread |
Maniac (V) Inmate From: Florida |
posted 04-09-2003 03:33
When working with file() in MOST cases trim() will do you for carriage returns "\n" and new lines "\n" |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
posted 04-09-2003 09:35
argh. |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 04-09-2003 17:42
Actually that won't work. nl2br only inserts the break tags it doesn't remove the newline so he'd still have the same problem. |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
posted 04-09-2003 19:01
actually, bitdamaged, you're right! |
Paranoid (IV) Inmate From: |
posted 04-10-2003 17:26
Ok next question , i havent got \n or anything in the file but it goes to a new line... would you say the \n is invisble? becaus all's I have in my file is |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 04-10-2003 17:47
you won't see a \n or \r the slash makes these escape characters for characters you can't see |
Paranoid (IV) Inmate From: New Jersey, USA |
posted 04-10-2003 21:16
Depending on what editor you work in you might have a setting in the preferences to view hidden characters. If so, select it and you will see all the space and returns and what not. It's helped me more than once in figuring out why my code wasn't doing what I expected. |