我尝试在Windows 10系统上的PHP 7中启用php_ssh2库。我尝试了很多方法,但没有任何帮助。
当我尝试访问“ssh2_connect()”函数时,它显示以下错误 “致命错误:调用未定义的函数 ssh2_connect()”。
操作系统:Windows 10
PHP 版本:7.2.4(Wamp 服务器 3.1.3)
请有人帮我解决这个问题吗?
不要从 phpfashion.com/php-ssh2-dll-for-php-5-6-and-7-0om 下载 谷歌确认这是一个危险文件。这是一个钓鱼网站。
1)点击下载扩展程序 https://phpfashion.com/php-ssh2-dll-for-php-5-6-and-7-0
与您的系统兼容,例如您的系统是64位且php版本是7,然后下载适用于PHP 7.0 x64的php_ssh2.dll,
2) 在 php.ini 中添加以下行 扩展名= php_ssh2.dll
3)重新启动您的 xampp 或 wampp。