Server omits all the new lines

Discuss server installationa nd configuration issues here

Moderators: macek, egami, gesf

New php-forum User
New php-forum User
Posts: 1
Joined: Tue Jul 03, 2012 2:48 am

Server omits all the new lines

Postby netnacool » Tue Jul 03, 2012 2:59 am

Hello There !

I have tried and tested my code offline but for certain files all their new line characters are ignored when i upload them to the server.
This results in a single line of code for total of about 1k lines of code i wrote. This creates many problem like all my code gets commented after the first comment.
And also any error present gives a location of line 1. So i cannot debug. :(
The code works perfectly offline but as soon as i upload it to the server it is converted to this form.

Fortunately most files upload without errors and i have tried to compare them with the erroneous files to see where i went wrong but i didn't find anything.

Any solution guys ??

User avatar
php-forum Fan User
php-forum Fan User
Posts: 981
Joined: Thu Feb 17, 2011 6:52 am
Location: Racine, WI

Re: Server omits all the new lines

Postby Nullsig » Thu Jul 05, 2012 7:03 am

Does your website use some sort of code optimization or compression? This is not something that is done by default, or even handled with a basic installation of a server.

Return to “Server installation and configuration”

Who is online

Users browsing this forum: No registered users and 2 guests