CURL php extension for Windows with SCP and SFTP support

I switched to zendserver (VS8 php binaries (5.3)) and now curl (7.19.4) doesn't seem to support SCP and SFTP protocol support (bug tested and phpinfo). The curler itself is installed correctly, it just doesn't support the mentioned protocol support.

This worked out of the box on VC9 binaries (thread safe) downloaded from php.net (this setup uses apache binaries compiled with VS9, so I used PHP files compiled with VS9)

I'm guessing it has something to do with curl extensions not built with VS9, because I also tried VS6 php binaries and also lacked SCP and SFTP support ...

Looking at the curl section on phpinfo I notice that there is no libSSH version in php installations without SCP / SFTP support, while the supported version says: libSSH Version-> libssh2 / 1.1

Any idea as to why these extension curls don't seem to have been compiled with libssh2 / 1.1 (guess what might be so?) Or is it something else?

+2


source to share


2 answers


If you cannot use CURL to execute SFTP, you can use this PHP SFTP implementation with pure PHP:



http://phpseclib.sourceforge.net/

+1


source


There is no particular reason. libcurl, which decodes the PHP / CURL bindings, can be built to use libssh2, and when done, it will be able to do SCP and SFTP transfers.



0


source







All Articles