SSH2 in php, wamp,windows

允我心安 提交于 2019-12-12 10:12:52

问题


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:


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



来源:https://stackoverflow.com/questions/24800993/ssh2-in-php-wamp-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!