You are here: Newbie Question re Line Breaks « PHP Programming Language « IT news, forums, messages
Newbie Question re Line Breaks

Posted by Pete on 06/18/06 17:04

I'm working on a script that generates and sends emails, and it looks like
I have to use \r\n for line breaks in the message body for correct display
in Windows email clients.

If the send fails [mail() = false], I save the message to an XML file, and
attempt a re-send later.

Is it OK to save the body with \r\n line breaks, or will this mess up
reading the file later with fgets()? How does fgets() deal with \r\n line
breaks?

TIA

Pete

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация