Re: [PHP] ^M in PHP

2003-03-14 Thread Chris Hewitt
John W. Holmes wrote: Yeah, I could use a decent text editor, but not everyone who uses my site will use it. I need something that can edit them out after download. Wouldn't it be smarter to eliminate them before it was saved on Windows? You could read in the file and get rid of all of the \r c

Re: [PHP] ^M in PHP

2003-03-13 Thread sumbry
> > Use a decent text editor that'll save the files in Unix format... even > > if you're on a PC. > > Yeah, I could use a decent text editor, but not everyone who uses my site > will use it. I need something that can edit them out after download. If you don't have that dos2unix conversion utility

RE: [PHP] ^M in PHP

2003-03-13 Thread John W. Holmes
> > Use a decent text editor that'll save the files in Unix format... even > > if you're on a PC. > > Yeah, I could use a decent text editor, but not everyone who uses my site > will use it. I need something that can edit them out after download. Wouldn't it be smarter to eliminate them before it

Re: [PHP] ^M in PHP

2003-03-13 Thread Liam Gibbs
> Use a decent text editor that'll save the files in Unix format... even > if you're on a PC. Yeah, I could use a decent text editor, but not everyone who uses my site will use it. I need something that can edit them out after download. -- PHP General Mailing List (http://www.php.net/) To unsub

RE: [PHP] ^M in PHP

2003-03-13 Thread John W. Holmes
> I'm downloading a file from Windows to Linux through PHP. Understandably, > there are ^Ms at the end of my lines. Is there a PHP function I can use to > delete them? Use a decent text editor that'll save the files in Unix format... even if you're on a PC. Let's NOT get into a text-editor-sugges

Re: [PHP] ^M in PHP

2003-03-13 Thread Chris Hewitt
Robert Cummings wrote: I know there's a binary for doing exactly that in linux but I can't for the life of me remember the name. If you're text editor is any good you should be able to do a search and replace for "\r" with "". I use joe, but that's hardly the editor of choice for most. Cheers, Rob

Re: [PHP] ^M in PHP

2003-03-13 Thread Robert Cummings
I know there's a binary for doing exactly that in linux but I can't for the life of me remember the name. If you're text editor is any good you should be able to do a search and replace for "\r" with "". I use joe, but that's hardly the editor of choice for most. Cheers, Rob. Liam Gibbs wrote: >

[PHP] ^M in PHP

2003-03-13 Thread Liam Gibbs
I'm downloading a file from Windows to Linux through PHP. Understandably, there are ^Ms at the end of my lines. Is there a PHP function I can use to delete them?