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
> > 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
> > 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
> 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
> 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
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
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:
>
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?
8 matches
Mail list logo