<?php ftp_fput( FTP\Connection $ftp, string $remote_filename, resource $stream, int $mode = FTP_BINARY, int $offset = 0): bool
<?php function ftp_fput(...$arguments) { if ( ! is_mocked('ftp_fput')) { return \ftp_fput(...$arguments); } return return_mocked_value('ftp_fput');
<?php $location = $this->prefixer->prefixPath($path); if ( ! ftp_fput($this->connection(), $location, $contents, $this->connectionOptions->transferMode())) { throw UnableToWriteFile::atLocation($path, 'writing the file failed'); }