public function putFromString($remote_file, $content)
    {
        $handle = fopen('php://temp', 'w');

        fwrite($handle, $content);
        rewind($handle);

        if ($this->ftp->fput($remote_file, $handle, FTP_BINARY)) {
            return $this;
        }

        throw new FtpException('Unable to put the file "'.$remote_file.'"');
    }
public function putFromString($remote_file, $content)
    {
        $handle = fopen('php://temp', 'w');

        fwrite($handle, $content);
        rewind($handle);

        if ($this->ftp->fput($remote_file, $handle, FTP_BINARY)) {
            return $this;
        }

        throw new FtpException('Unable to put the file "'.$remote_file.'"');
    }
public function putFromString ( $ remote_file , $ content ) { $ handle = fopen ( 'php://temp' , 'w' ) ; fwrite ( $ handle , $ content ) ; rewind ( $ handle ) ; if ( $ this -> ftp -> fput ( $ remote_file , $ handle , FTP_BINARY ) ) { return $ this ; } throw new FtpException ( 'Unable to put the file "' . $ remote_file . '"' ) ; }
Uploads a file to the server from a string.

@param  string       $remote_file
@param  string       $content
@return FtpClient
@throws FtpException When the transfer fails
Uploads a file to the server from a string .