RE: [PHP] ^M at the end of each line when I use php to write file

From: Date: Thu, 31 Oct 2002 19:29:58 +0000
Subject: RE: [PHP] ^M at the end of each line when I use php to write file
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-122316@lists.php.net to get a copy of this message
Hello, For anyone else that had a problem with ^M use this function: str_replace("\r", "", $result); -------------------------------------------- Brandon Orther WebIntellects Design/Development Manager brandon@webintellects.com 800-994-6364 www.webintellects.com -------------------------------------------- -----Original Message----- From: 1LT John W. Holmes [mailto:holmes072000@charter.net] Sent: Thursday, October 31, 2002 10:42 AM To: Brandon Orther; PHP User Group Subject: Re: [PHP] ^M at the end of each line when I use php to write file You're probably writing \r\n instead of just \n. ---John Holmes... ----- Original Message ----- From: "Brandon Orther" <orther@webintellects.com> To: "PHP User Group" <php-general@lists.php.net> Sent: Thursday, October 31, 2002 12:44 PM Subject: [PHP] ^M at the end of each line when I use php to write file > Hello, > > Does anyone know a way around all the ^M at the end of each line that > my php file writes to on a linux box? > > > -------------------------------------------- > > Brandon Orther > > WebIntellects Design/Development Manager > > <mailto:brandon@webintellects.com> > brandon@webintellects.com > 800-994-6364 > > <http://www.webintellects.com/> www.webintellects.com > > -------------------------------------------- > > >

« previous php.general (#122316) next »