Question

I've been searching in google for this, but I did not find an answer. or maybe I do not know a good keyword for this. I always find my files have unwanted new line every time I uploaded to cpanel.

Before Upload: before upload to cpanel After Upload: enter image description here

It started when I uploaded myfile.php with 208 lines today via FileZilla, and the next day I re-download the file and I edited using Aptana. suddenly i got the file already has the unwanted new line become 382 lines. Are you have been experiencing with this? please help me solve this problem. Thank you. Sorry for bad english

Was it helpful?

Solution

The issue is the conversion of file between different operating systems.

The server is a unix system, which changes the line termination character. As such when the files is downloaded from the server, you need to use a utility like unix2dos to convert the file.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top