Maybe you should add `rewind($this->handle)` before `fpassthru`.