Re: Problem with mail()
| From: | Alexander Deruwe | Date: | Sat, 29 Sep 2001 17:59:48 +0000 |
| Subject: | Re: Problem with mail() | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-69297@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Sunday 29 July 2001 14:28, you wrote:
> You might want to check if there is a newline at the end, you should do
> rtrim() when you draw the subject from the db
Or use trim(), which trims spaces and special chars from both the beginning
and ending of the string. You should in fact do this for every field that you
pull from your db, unless leading or trailing spaces (special chars) are
actually part of the 'clean' data.
Alexander
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE7tgwbySJLuRUx8aQRAs7SAJ4yx0F/uWY43oPUVAZIbJuL0TOdnwCfY2CR
G13/uk+gAm+LxEM47Cko+Zo=
=ob++
-----END PGP SIGNATURE-----