public function getPos()
    {
        if ($this->_mode == 0) {
            if (feof($this->file)) {
                $stat = fstat($this->file);
                fseek($this->file, $stat['size']);
            }

            $pos = ftell($this->file);

            return $pos;
        } else {
            return 0;
        }
    }
public function getPos()
    {
        if ($this->_mode == 0) {
            if (feof($this->file)) {
                $stat = fstat($this->file);
                fseek($this->file, $stat['size']);
            }

            $pos = ftell($this->file);

            return $pos;
        } else {
            return 0;
        }
    }
public function getPos ( ) { if ( $ this -> _mode == 0 ) { if ( feof ( $ this -> file ) ) { $ stat = fstat ( $ this -> file ) ; fseek ( $ this -> file , $ stat [ 'size' ] ) ; } $ pos = ftell ( $ this -> file ) ; return $ pos ; } else { return 0 ; } }
Get the position in the file stream

@return int
Get the position in the file stream