Re: Hoping for a working example of SFTP in PHP
| From: | David Spector | Date: | Mon, 25 Jan 2021 13:33:55 +0000 |
| Subject: | Re: Hoping for a working example of SFTP in PHP | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-327418@lists.php.net to get a copy of this message | ||
Dear Jonesy,
While I appreciate your participation, your example appears to be a command line instead of PHP code. Also, I don't see the required SFTP parameters.
Here are the specific parameters for SFTP in PHP, with examples for each, if they are of help:
$hostDomainName (example.com)
$securePort (22)
$user (fred)
$password (userpass)--may not be needed
$keyPath (C:/Users/david/sec/privKey.key)
$passphrase (privkeypass)
$remoteDir (public_html)
David