0

i'm using wampserver 2.2 apache 2.2.22 php 5.4.3 mysql 5.5.24, I've installed php_ssh2.dll extension for php 5.4 and i added it in php.ini as extension=php_ssh2.dll then restarted all services. I tried to use ssh2_connect() but it doesn't work and I don't really understand why cause the version is compatible with php 5.4.3.

Please if you're having any tips just let me know here is the link where i downloaded ssh2.dll

Charles
  • 50,943
  • 13
  • 104
  • 142
user2140392
  • 59
  • 1
  • 5
  • Does phpinfo() list the extension as loaded? – KillerX Apr 12 '13 at 06:36
  • Unless you provide a concrete error message, no further directions in your concrete case can (and should) be given. Which error message do you get? If you don't know, enable error logging in your php ini (to catch startup errors, this is important in your case) and follow the error log. Edit your question then and provide the missing error message. If you already solved your problem in the meanwhile, please reproduce and add the error message as well. Also please answer then your own question. Thank you. – hakre Apr 26 '13 at 13:18

1 Answers1

1

Honestly, I'd just recommend phpseclib, a pure PHP SSH2 implementation. It has a number of advantages over what you're using. Among others, it's ton more portable and easier to install.

Community
  • 1
  • 1
neubert
  • 15,947
  • 24
  • 120
  • 212
  • This is more a comment than an answer. Please leave suggestions for alternatives in comments instead. Especially as this is another link only answer. – hakre Apr 26 '13 at 13:22