SSH2 in php, wamp,windows

2019-05-19 23:02发布

I have to connect sftp link and have to put data in sftp link.

I want to connect sftp link through function ssh2_connect.

My trouble is that whenever i am running that function i am getting error Call to undefined function ssh2_connect().

Then I downloaded libssh2.tar.gz and ssh2.tgz but i dont know where to install / put these files.

I am using - Windows 7, Wamp server, mysql, php P.O. - If i have to run come commands then please tell also where i have to run that commands. Thanks in advance IF there is another way to connect sftp link please share that also.

1条回答
淡お忘
2楼-- · 2019-05-19 23:40

You can try to copy the dll files in the "wamp\bin\php*..\ext\" path and add line "extension=[name_of_your_file.dll]" to the php.ini file in the "wamp\bin\php*..\" path

查看更多
登录 后发表回答