RE: [PHP] strip ^M's ??

From: Date: Fri, 02 Mar 2001 18:05:17 +0000
Subject: RE: [PHP] strip ^M's ??
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-42370@lists.php.net to get a copy of this message
Thanks! Werked Great d;-Þ -----Original Message----- From: Nathan Cassano [mailto:nathan@cjhunter.com] Sent: Friday, March 02, 2001 9:46 AM To: 'Brandon Orther'; php-general@lists.php.net Subject: RE: [PHP] strip ^M's ?? Here is a solution I can up with to solve all the CR and LF funniness coming from different web browsers. $input = ereg_replace("\r\n|\n|\r", "\n", $input); -----Original Message----- From: Brandon Orther [mailto:brandon@webintellects.com] Sent: Friday, March 02, 2001 9:43 AM To: PHP User Group Subject: [PHP] strip ^M's ?? Hello, I am making a PHP script that upload formmail into people web directory with all the settings easily configured on a web based setup screen. Is there a way to have php remove all ^M (Control M) from the file before it uploads it to the server? Thank you, -------------------------------------------- Brandon Orther WebIntellects Design/Development Manager brandon@webintellects.com 800-994-6364 www.webintellects.com -------------------------------------------- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#42370) next »