Re: ^M

From: Date: Fri, 04 Apr 2003 14:54:22 +0000
Subject: Re: ^M
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-142344@lists.php.net to get a copy of this message
Liam Gibbs wrote:
It looks like you are viewing a dos/windows file on unix. The ^M is carriage return, which is needed as part of a dos/window end of line sequence (carriage return, line feed) whereas unix uses just line feed.
Nope. They're UNIX-created and UNIX-modified. Does it matter if I downloaded them onto my PC and then back onto the server? I don't think it should, since I did a global search-and-replace of all those suckers. As long as both transfers were done BINARY or ASCII then it should be the same when you get the file back. Just a thought, how are you generating these files? If you are doing it from code then \r \n will give you carriage return and line feed. On *nix you just need \n (there is the odd exception like mail() which should use both).
HTH Chris

« previous php.general (#142344) next »