PDA

View Full Version : All my php files are now double-spaced!? How to rectify?


kelvyn
9-28-04, 04:23 AM
I upgraded a php application I have by using the excellent Winmerge.
I then tar-zipped the whole lot up using 7zip, uploaded it to the server, untar-zipped it and it all worked fine.
Until I came to edit a file - and everything seems to be double-spaced! Not only does it make "edit line x" instructions a problem, it also seems that the files are OK until I edit them, and then when saved, even thought the edit is correct, I get some server error. .htaccess seems particularly fussy.

How can I "right" this whole thing with one easy (free?) application? And no, it can't have been that I uploaded it binary, because when it was uploaded, it was in a zipped up tar file!

Pig
9-28-04, 10:01 AM
Sounds like you edited it on a windows machine. If you had transferred it regularly through ascii, your ftp client would have converted the line endings for you. The easiest route would be to delete it off the server and reuploade it in ascii instead of a tarball. I don't think there is any good way to remove the line breaks since they may part of a string, and there's no simple way to distinguish.