Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .