So which is it that will keep my files from having ^M after PHP is finished fopen(), fputs(), and fclose() with them? \n, \r, and \n\r all seem to reinsert ^M at the ends of all my lines.
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.
On unix (well, a full install of linux) there are the conversion programs dos2unix and unix2dos. If transferring by ftp, use ASCII not BINARY transfer.
I'm not sure how to help more, as it is not clear what you are trying to do.
HTH Chris
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php