Title: Why source code gets compressed?
Last modified: April 13, 2017

---

# Why source code gets compressed?

 *  Resolved [Dan__](https://wordpress.org/support/users/davidus16/)
 * (@davidus16)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/why-source-code-gets-compressed/)
 * Hello!
 * I use BackWpUp with zip-compression. But when I extract the .zip file the source
   code is compressed.
    This code <html> <?php echo “Hello World”> </html> gets 
   like this: <html><?php echo “Hello World”></html>
 * Why that? I thought zip compression is loss-free?

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [Caleb](https://wordpress.org/support/users/crudhunter/)
 * (@crudhunter)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/why-source-code-gets-compressed/#post-9028605)
 * This has nothing to do with ZIP encoding (Which IS entirely lossless.).
    Nor 
   do I think you “lost” anything.
 * You might simply be viewing your code file in a “dumb” viewer on Windows that
   cannot handle the difference in how End-of-Lines are handled on Linux versus 
   DOS/Windows.
 * On Unix/Linux systems each newline in a file is representing as simply an LF (
   line-feed) character.. On DOS/Windows they use two characters (CR+LF, a CarriageReturn
   followed by a Line-feed).
 * SO… When you view a Linux file (with only an LF between lines) on Windows, dumb
   viewers (like the Windows Notepad app) do not show the LF alone. Does not see
   it as needing to show a new line. It visually looks like all the lines have been
   concatenated (combined).
 * Try viewing the same file in a different Windows App.. Like Wordpad, which understands
   the LF alone as meaning go to a fresh line on screen.
 * In the end, it does not matter much.. Files edited/created in Windows apps (and
   hence has CRs inserted as well) are understood when executed in PHP on Linux.
   It ignores the stupid CR characters Windows uses at the end of lines.
    -  This reply was modified 9 years, 1 month ago by [Caleb](https://wordpress.org/support/users/crudhunter/).
    -  This reply was modified 9 years, 1 month ago by [Caleb](https://wordpress.org/support/users/crudhunter/).
 *  Thread Starter [Dan__](https://wordpress.org/support/users/davidus16/)
 * (@davidus16)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/why-source-code-gets-compressed/#post-9029878)
 * Thanks for your reply. No, I don’t think that I lost anything, of course. 🙂
 * I will try that. Thanks for the explanation.
 *  [Caleb](https://wordpress.org/support/users/crudhunter/)
 * (@crudhunter)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/why-source-code-gets-compressed/#post-9031937)
 * If you would let us know what your end result was, and maybe mark as resolved
   IF you find it do be so?
 *  Plugin Contributor [Brandon Olivares](https://wordpress.org/support/users/cocreation/)
 * (@cocreation)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/why-source-code-gets-compressed/#post-9048775)
 * [@davidus16](https://wordpress.org/support/users/davidus16/) I just want to make
   sure this is resolved for you. Are you still experiencing this issue?
 *  Plugin Contributor [Brandon Olivares](https://wordpress.org/support/users/cocreation/)
 * (@cocreation)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/why-source-code-gets-compressed/#post-9061557)
 * [@davidus16](https://wordpress.org/support/users/davidus16/), was our response
   helpful? If so, could you please mark the ticket as resolved? Otherwise we are
   glad to help! 🙂
 *  Plugin Contributor [Brandon Olivares](https://wordpress.org/support/users/cocreation/)
 * (@cocreation)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/why-source-code-gets-compressed/#post-9088477)
 * [@davidus16](https://wordpress.org/support/users/davidus16/), since we didn’t
   hear back from you, we assume that your problem has been fixed and we can mark
   this ticket as resolved. If we are wrong, please reopen the ticket and provide
   more information, so we can help to find a proper solution for you! 🙂

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Why source code gets compressed?’ is closed to new replies.

 * ![](https://ps.w.org/backwpup/assets/icon-256x256.png?rev=3236141)
 * [BackWPup – WordPress Backup & Restore Plugin](https://wordpress.org/plugins/backwpup/)
 * [Support Threads](https://wordpress.org/support/plugin/backwpup/)
 * [Active Topics](https://wordpress.org/support/plugin/backwpup/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/backwpup/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/backwpup/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [Brandon Olivares](https://wordpress.org/support/users/cocreation/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/why-source-code-gets-compressed/#post-9088477)
 * Status: resolved