The world, how it works, surroundings, myself, etc.

Wednesday, September 15, 2004

Squirrelmail attachment: File corrupted and size getting increased (doubled): Actually PHP prob.

I spent a considerable amount of time before I could figure out the
solution to my Squirrelmail problem. My attachments were getting corrupted
for even slightly heavy files. Interestingly, the file size was getting
near to doubled.


I hunted and figured out that it wasn't actually a squirrelmail problem in
the first place. The problem lies with Apache (it's a apache 2 bug)
I had to comment out the following lines from php.conf:
#<Files *.php>
# SetOutputFilter PHP
# SetInputFilter PHP

This following link helped:

I had already gone all nuts (not expected PHP to behave like this). This
solution was really a relief.