Re: Hoping for a working example of SFTP in PHP
| From: | David Spector | Date: | Sat, 06 Feb 2021 17:24:48 +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-327464@lists.php.net to get a copy of this message | ||
Eric, Answers:
I use Apache 2.4 both locally and remotely, I believe.
Installed on Windows as a component of Bitnami WAMP, a standard stack product.
If it has something to do with the server, it would most likely be an incorrect directive in httpd.config, the file that configures Apache. I can't imagine what it could be.
Yes, your other method did work, the first time I tried it. Only the "copy" command is not working. The system is failing to generate a meaningful error message to help us debug the problem. I'm guessing that file-exists with a wrapper is succeeding, as it did with your previous program. So only copy is failing, which narrows it a bit.
I can't see how Apache could disable a PHP stream, but anything is possible. I don't know what fpm is; I probably don't use it.
Does my program work or fail for you as-is when you insert your parameters? If it fails, you can try to debug it. If it succeeds, perhaps we are stuck.
David