functions.php
Functions
sftp_client()
sftp_client(string $host, string $user, string|PrivateKey $credential[, int $port = 22 ]) : SFTP
Parameters
- $host : string
- $user : string
- $credential : string|PrivateKey
- $port : int = 22
Tags
Return values
SFTPsftp_filesystem()
sftp_filesystem(array<string|int, mixed>|SFTP $sftp[, Options $options = new Options() ][, string $protocol = 'sftp' ]) : SFTPFilesystem
Parameters
- $sftp : array<string|int, mixed>|SFTP
-
a configuration array (host, user, port?, password | private_key + passphrase?) builds a client that can be described for another process; a live client stays in-process
- $options : Options = new Options()
- $protocol : string = 'sftp'
Return values
SFTPFilesystemsftp_filesystem_options()
sftp_filesystem_options() : Options