public function fput($stream, $remote)
    {
        $this->isAlive(true);
        $this->errorHandler->start();
        if ($this->driver->fput($this->resource, $remote, $stream, FTP_BINARY)) {
            $this->errorHandler->stop();

            return true;
        }
        $this->errorHandler->stop();

        return false;
    }
public function fput($stream, $remote)
    {
        $this->isAlive(true);
        $this->errorHandler->start();
        if ($this->driver->fput($this->resource, $remote, $stream, FTP_BINARY)) {
            $this->errorHandler->stop();

            return true;
        }
        $this->errorHandler->stop();

        return false;
    }
public function fput ( $ stream , $ remote ) { $ this -> isAlive ( true ) ; $ this -> errorHandler -> start ( ) ; if ( $ this -> driver -> fput ( $ this -> resource , $ remote , $ stream , FTP_BINARY ) ) { $ this -> errorHandler -> stop ( ) ; return true ; } $ this -> errorHandler -> stop ( ) ; return false ; }
Similar to put but does not get the file localy.

This should be used instead of put in most cases.

@param stream|resource $stream The resource to put remotely, probably the resource returned from a fget.
@param string          $remote The pathname to the desired remote pathname.

@return integer|boolean  number of bytes written on success, false on failure.
Similar to put but does not get the file localy .