Forum Moderators: coopster

Message Too Old, No Replies

Getting Strange new line character when files downloaded from linux sy

how to get rid of that?

         

tabish

8:29 am on Jun 20, 2009 (gmt 0)

10+ Year Member



Hi all,

Whenever I download any PHP file from Linux server to my windows system (using cute ftp or other FTP program) I see an strange "Square" shape character when I open that file in Edit Plus.

My PHP scripts starts giving "Header already send" because of those strange "Square" shape characters which is automatically inserted by Linux system.

Need to mention here that, this character can only be seen in editplus.

How to get rid of it?
P.S: I download my PHP files as ASCII only
Regards

coopster

1:34 pm on Jun 20, 2009 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



What file type is it?

Skeer

7:47 am on Jun 21, 2009 (gmt 0)

10+ Year Member



Linux uses new line (\n) as the line break. Windows used return cartridge new line as line break (\r\n). Therefor, you should convert all \n to \r\n. Try using dos2unix or unix2dos in terminal.

tabish

3:09 pm on Jun 21, 2009 (gmt 0)

10+ Year Member



Problem resolved.. I downloaded PHP and other files as binary, and it worked just perfect.

Thank you everyone.