public function putContents($contents, $remote)
    {
        $stream = fopen('data://text/plain,' . $contents, 'r');

        return $this->fput($stream, $remote);
    }
public function putContents($contents, $remote)
    {
        $stream = fopen('data://text/plain,' . $contents, 'r');

        return $this->fput($stream, $remote);
    }
public function putContents ( $ contents , $ remote ) { $ stream = fopen ( 'data://text/plain,' . $ contents , 'r' ) ; return $ this -> fput ( $ stream , $ remote ) ; }
Write the contents of a string to the remote.

@param string $contents The contents to put remotely.
@param string $remote   The pathname to the desired remote pathname.

@return boolean|integer Number of bytes written on success, false on failure.
Write the contents of a string to the remote .