Re: Hoping for a working example of SFTP in PHP
| From: | David Spector | Date: | Mon, 08 Feb 2021 17:06:49 +0000 |
| Subject: | Re: Hoping for a working example of SFTP in PHP | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-327477@lists.php.net to get a copy of this message | ||
Dear Peter, Unfortunately, I agree with you, now that I think about it: the error message is correct as it stands.
The error happened because there is no 'ssh2.sftp' folder on my local webserver.
It is most unfortunate that two slashes in a row are allowed in pathnames. Some redundancy in specifying protocols would have been useful here. Microsoft network share names have two slashes in a row, with no preceding colon. And in other contexts, two slashes in a row are frequently treated as one slash. Both behaviors make programming using protocols somewhat more difficult to debug.
David