Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I recently cleaned up some .PHP files of mine with alot of code in them, there was alot of stuff that was not needed so I deleted those lines, in one case it was around 200 lines of code.

The strange thing that occured is, after re-saving that one .PHP file, the size went from 70,3 kb to 72,5 kb.

How is that possible ?

share|improve this question
    
It would help if we knew which editor and which OS. –  terdon Mar 29 '13 at 12:14
add comment

1 Answer

Perhaps your editor automatically expanded tabs into spaces? This could easily account for few extra KB of size, even if some lines were deleted.

In addition to that, your editor could have converted Linux line endings CR into Windows style CR+LF.

If you have your files under source control, you should be able to easily tell what happened using commands like git diff HEAD~ or svn diff -r PREV file.php.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.