Re: Hoping for a working example of SFTP in PHP
| From: | David Spector | Date: | Mon, 08 Feb 2021 15:51:07 +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-327475@lists.php.net to get a copy of this message | ||
Eric, Yes, that was it! Fixing this made 'copy' work.
So, PHP maintainers: why didn't the error message say that the colon was missing, or include a description of correct wrapper syntax? All it says is "failed to open stream", not even "syntax error in stream protocol". I would fix the error message myself if I could.
Thanks, Eric, for your sustained help in getting both parts of this example working. You are a great human being and an inspiration.
When I have time, I will clean up the examples and post them wherever people are having trouble using PHP to upload files using SFTP.
David