Re: Carriage return.

From: Date: Wed, 05 Sep 2001 09:46:21 +0000
Subject: Re: Carriage return.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-66015@lists.php.net to get a copy of this message
anyway, the ^M is same as "\r" or "\x0D" you can call preg_replace("\x0D", "", $your_output); "Johan Vikerskog" <Johan.Vikerskog@emp.ericsson.se> wrote in message news:A9D7A677B724D411A8B600204840355E03515131@eseldnt102.ld.sw.ericsson.se.. . > My users perform their action which is to simulate data online with my script. > Afterwards they get a result of their simulation. They have a option to save the result to a file and when they do that they get the ^M. > > //Johan > > -----Original Message----- > From: David Robley [mailto:huntsman@www.nisu.flinders.edu.au] > Sent: den 5 september 2001 10:29 > To: Johan Vikerskog (EMP); php_list > Subject: Re: [PHP] Carriage return. > > > On Wed, 5 Sep 2001 17:22, Johan Vikerskog (EMP) wrote: > > My php script is generating a file that is saved in Unix format. > > I automatically get the "^M" in the end of everyline. Is there a way > > of saving this without getting the "^M" in the end of each line? > > > > Thanks in advance > > > > //Johan > > If you are getting a ^M something is a bit wrong as that is xOD the CR > character. What system are you on and what is the relevant part of your > script? > > -- > David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc > CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA > > I smell a rat. Did you bake it or fry it?

« previous php.general (#66015) next »