Re: Carriage return.
| From: | Christopher William Wesley | Date: | Wed, 05 Sep 2001 15:44:00 +0000 |
| Subject: | Re: Carriage return. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-66054@lists.php.net to get a copy of this message | ||
On Wed, 5 Sep 2001, 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?
The ^M you see is a DOS carriage return/line feed.
It seems your PHP script is printing "\r\n" at the end of lines.
If you want Unix line feeds, your PHP script should print "\n" only.
~Chris /"\
\ / Pine Ribbon Campaign
Microsoft Security Specialist X Against Outlook
The moron in Oxymoron. / \ http://www.thebackrow.net