You are here: Re: wrapping text « PHP « IT news, forums, messages
Re: wrapping text

Posted by John Taylor-Johnston on 08/14/05 09:28

>"wordwrap(stripslashes($message), 72)".

Thanks! Another reason why I gave up on Perl :) A fucntion made already
since 4.0.2.! :)
Matthew Weier O'Phinney wrote:

>> Folks are complaining mail arrives and text will not wrap. $message
>> comes directly from a textarea. Old mail readers, I guess?
>
>
> Yep. Investigate http://php.net/wordwrap:
>
>> mail("info@foo.ca", stripslashes($subject), stripslashes($message),
>> "Return-Path: <info@foo.ca>\r\nFrom: \"[foo] foo\" <info@foo.ca>\r\nbcc:
>> $bcc \r\nReply-To: info@foo.ca \r\n"."X-Mailer: PHP/" . phpversion());
>
>
> Make "stripslashes($message)" into
> "wordwrap(stripslashes($message), 72)".
>

 

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

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