protected function _filePutContents($file, $string)
    {
        $result = false;
        $f = @fopen($file, 'ab+');
        if ($f) {
            if ($this->_options['file_locking']) @flock($f, LOCK_EX);
            fseek($f, 0);
            ftruncate($f, 0);
            $tmp = @fwrite($f, $string);
            if (!($tmp === FALSE)) {
                $result = true;
            }
            @fclose($f);
        }
        @chmod($file, $this->_options['cache_file_umask']);
        return $result;
    }
protected function _filePutContents($file, $string)
    {
        $result = false;
        $f = @fopen($file, 'ab+');
        if ($f) {
            if ($this->_options['file_locking']) @flock($f, LOCK_EX);
            fseek($f, 0);
            ftruncate($f, 0);
            $tmp = @fwrite($f, $string);
            if (!($tmp === FALSE)) {
                $result = true;
            }
            @fclose($f);
        }
        @chmod($file, $this->_options['cache_file_umask']);
        return $result;
    }
protected function _filePutContents ( $ file , $ string ) { $ result = false ; $ f = @ fopen ( $ file , 'ab+' ) ; if ( $ f ) { if ( $ this -> _options [ 'file_locking' ] ) @ flock ( $ f , LOCK_EX ) ; fseek ( $ f , 0 ) ; ftruncate ( $ f , 0 ) ; $ tmp = @ fwrite ( $ f , $ string ) ; if ( ! ( $ tmp === FALSE ) ) { $ result = true ; } @ fclose ( $ f ) ; } @ chmod ( $ file , $ this -> _options [ 'cache_file_umask' ] ) ; return $ result ; }
Put the given string into the given file

@param  string $file   File complete path
@param  string $string String to put in file
@return boolean true if no problem
Put the given string into the given file