本文介绍了PHP启动:无法加载动态库php_ssh2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在wamp上安装php_ssh2扩展名。
我执行以下操作:

I am trying to install php_ssh2 extension on wamp.I do the following things:


  1. 将libssh2.dll复制到C:\Windows\SysWOW64

  2. 注册dll文件:Regsvr32 libssh2.dll

  3. 将php_ssh2.dll复制到C:\wamp\bin\php\php5.5.12 \ext

  4. 在php.ini中添加扩展行

  1. copy libssh2.dll to C:\Windows\SysWOW64
  2. register the dll file: Regsvr32 libssh2.dll
  3. copy php_ssh2.dll to C:\wamp\bin\php\php5.5.12\ext
  4. add extension line in php.ini

我收到消息:

希望有人能帮助您!

预先感谢

Hope if someone will know to help !
Thanks in advance

推荐答案

libssh2是PITA。我只使用phpseclib的libssh2-compatibility-layer:

libssh2 is a PITA. I'd just use phpseclib's libssh2-compatibility-layer:

示例:

<?php
include('phpseclib.php');

$ssh = ssh2_connect('www.domain.tld');
echo ssh2_fingerprint($ssh);

基本上,它只是使用phpseclib来模拟所有ssh2_ *函数。

Basically, it just uses phpseclib to emulate all of the ssh2_* functions.

这篇关于PHP启动:无法加载动态库php_ssh2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-28 14:50