couldn't find any syntastical error even though scanned for long time...
try changing this line though:
$size_part=substr($linein,1,instr($linein," "))

to this:
$size_part=""+substr($linein,1,instr($linein," "))

and tell did it change anything.
_________________________
!

download KiXnet