note 31773 added to ref.mail

From: Date: Sat, 03 May 2003 04:57:22 +0000
Subject: note 31773 added to ref.mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-47411@lists.php.net to get a copy of this message
If you are getting slash characters replacing single and double quotes and apostrophes - like ' becoming /' - then apparently there is an issue with your php.ini file. But the easy way to fix it is to use the function 'stripcslashes'. Just use: <?php mail( $to , stripcslashes($subject) , stripcslashes($message) ... Took me hours to find it. Michael http://tivo.weaknees.com -- http://www.php.net/manual/en/ref.mail.php http://master.php.net/manage/user-notes.php?action=edit+31773 http://master.php.net/manage/user-notes.php?action=delete+31773 http://master.php.net/manage/user-notes.php?action=reject+31773

« previous php.notes (#47411) next »