public function appendBinary($file, $data, $create = true, $writecheck = true)
    {
        // Preprocessing
        $file = $this->_preProcess($file);

        // if write checking is enabled
        if ($writecheck && !$this->_is_writable($file)) {
            throw new Doozr_Exception(
                'Could not write binary data to file. The file "'.$file.'" could not be written. '.
                'Current operation failed. Check permissions.'
            );
        }

        // return result of operation
        return $this->_append($file, $data, $create, self::FILE_BINARY);
    }
public function appendBinary($file, $data, $create = true, $writecheck = true)
    {
        // Preprocessing
        $file = $this->_preProcess($file);

        // if write checking is enabled
        if ($writecheck && !$this->_is_writable($file)) {
            throw new Doozr_Exception(
                'Could not write binary data to file. The file "'.$file.'" could not be written. '.
                'Current operation failed. Check permissions.'
            );
        }

        // return result of operation
        return $this->_append($file, $data, $create, self::FILE_BINARY);
    }
public function appendBinary ( $ file , $ data , $ create = true , $ writecheck = true ) { // Preprocessing $ file = $ this -> _preProcess ( $ file ) ; // if write checking is enabled if ( $ writecheck && ! $ this -> _is_writable ( $ file ) ) { throw new Doozr_Exception ( 'Could not write binary data to file. The file "' . $ file . '" could not be written. ' . 'Current operation failed. Check permissions.' ) ; } // return result of operation return $ this -> _append ( $ file , $ data , $ create , self :: FILE_BINARY ) ; }
Appends binary data to a file

This method is intend to append binary data to a file.

@param string $file       The file to write the content to
@param string $data       The content to write to the file
@param bool   $create     TRUE to create file if it not exist, FALSE to do not
@param bool   $writecheck Controls if writecheck should be performed

@author Benjamin Carl <opensource@clickalicious.de>
@return mixed Number of bytes written if everything wents fine, otherwise false
@access public
@throws Doozr_Exception
Appends binary data to a file