Re: ^M at the end of each line when I use php to write file

From: Date: Thu, 31 Oct 2002 18:08:02 +0000
Subject: Re: ^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-122292@lists.php.net to get a copy of this message
ahhhh.... what does your code look like??? What happens when you $fp = fopen("temp", a+); for ( $x=0 ; $x<10 ; $x++ ) fputs($fp, "$x\n"); fclose($fp); ??? On Thursday 31 October 2002 09:44 am, Brandon Orther wrote: > 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 > > -------------------------------------------- -- I contend that we are both atheists. I just believe in one fewer god than you do. When you understand why you dismiss all the other possible gods, you will understand why I dismiss yours. -Stephen Roberts

« previous php.general (#122292) next »