Linebreak problem |
|
I believe it has to do with how PHPed transfers files. As far as I can tell it always sends them in Binary mode, so it leaves it up to the FTP server how it will translate Windows-formatted files.
Most FTP Client programs will transfer them in ASCII mode, which tells the server to convert windows-style newlines into Unix depending on the system. See my thread posted last week: http://forum.nusphere.com/tip-troubleshooting-debugger-communications-ssh-t581.html There are a lot of other threads on this issue all over the board if you search a little bit. I'd love to hear that I am wrong on the ASCII/Binary thing, though. As far as I can tell, FTP transfer mode is non-adjustable in PHPEd, and if you're getting double newlines there's no fix besides uploading with a different FTP client (the standard answer has been to configure the remote server correctly; most people don't have the access to do that) |
||||||||||||
|
Site Admin
|
It's not actually correct.
In binary mode, neither client nor server can change anything in the file. All the line endings must be preserved as is. In ASCII mode, both server and client re-interpret the line endings and may change the file content. I'd recommend you to login to the server using ssh or telnet and check the file content in place. You may want to try any hex dumping programs to see actual line endings in your files. Maybe they are already corrupted. For example 0x10,0x13,0x10 and 0x13,0x10,0x13 variants will result in duplication in PhpED. |
||||||||||||
_________________ The PHP IDE team |
Linebreak problem |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by