Flames wouldn't be eternal if they actually consumed anything.

Lilah ,'Not Fade Away'


Buffistechnology 3: "Press Some Buttons, See What Happens."

Got a question about technology? Ask it here. Discussion of hardware, software, TiVos, multi-region DVDs, Windows, Macs, LINUX, hand-helds, iPods, anything tech related. Better than any helpdesk!


Jon B. - Oct 30, 2009 9:03:36 am PDT #11540 of 25501
A turkey in every toilet -- only in America!

I'm generating a string in PHP on a linux server that will be sent out as the body of an email. For carriage returns within the string, should I use [backslash]n or [backslash]r[backslash]n ?

(edited 'cause backslashes are being stripped out.)


Tom Scola - Oct 30, 2009 9:09:57 am PDT #11541 of 25501
Remember that the frontier of the Rebellion is everywhere. And even the smallest act of insurrection pushes our lines forward.

It should be \\r\\n.


Jon B. - Oct 30, 2009 9:37:22 am PDT #11542 of 25501
A turkey in every toilet -- only in America!

Thanks, Tom. Could you explain what the practical difference is?


Tom Scola - Oct 30, 2009 9:39:44 am PDT #11543 of 25501
Remember that the frontier of the Rebellion is everywhere. And even the smallest act of insurrection pushes our lines forward.

[link]

Most textual Internet protocols (including HTTP, SMTP, FTP, IRC and many others) mandate the use of ASCII CR+LF (0x0D 0x0A) on the protocol level, but recommend that tolerant applications recognize lone LF as well. In practice, there are many applications that erroneously use the C newline character '\\n' instead (see section Newline in programming languages below). This leads to problems when trying to communicate with systems adhering to a stricter interpretation of the standards; one such system is the qmail MTA that actively refuses to accept messages from systems that send bare LF instead of the required CR+LF.[1]


Jon B. - Oct 30, 2009 9:41:51 am PDT #11544 of 25501
A turkey in every toilet -- only in America!

Excellent! Just what I was looking for. Thanks!!


Vortex - Oct 30, 2009 10:47:09 am PDT #11545 of 25501
"Cry havoc and let slip the boobs of war!" -- Miracleman

Thanks amych (pronounced Amy-chuh)


Typo Boy - Oct 30, 2009 4:33:41 pm PDT #11546 of 25501
Calli: My people have a saying. A man who trusts can never be betrayed, only mistaken.Avon: Life expectancy among your people must be extremely short.

Just because I think many of the tech people here will appreciate this from overheard in the office: [link]

IT guy: Yeah, the UI needs to be top-notch. Like the best thing you've ever done. Uh, don't spend too much time on it.


shrift - Oct 31, 2009 9:36:00 am PDT #11547 of 25501
"You can't put a price on the joy of not giving a shit." -Zenkitty

Anyone have recommendations for a 2-port KVM Switch?


Typo Boy - Oct 31, 2009 11:02:28 am PDT #11548 of 25501
Calli: My people have a saying. A man who trusts can never be betrayed, only mistaken.Avon: Life expectancy among your people must be extremely short.

OK going nuts with new monitor. Windows 7, computer starts fine in safe mode even with networking. But during normal startup says "starting windows". The little windows logo comes on fades a bit. And then screen blacks out and never comes on again even though I can hear disk go through normal bootup process. No adjustment to monitor makes windows visible. Changes in resolution no joy. Yet it boots fine in safe mode.


Sean K - Oct 31, 2009 11:18:02 am PDT #11549 of 25501
You can't leave me to my own devices; my devices are Nap and Eat. -Zenkitty

Gar, when I had something similar happen to me (on Windows XP) the problem turned out to be that the video card had crapped out.