Page 1 of 1

Call to undefined function ssh2_connect()

PostPosted: 07. September 2006 19:37
by lpastor
Hello,

I have deleted the ";" in the php.ini file for this line : extension=php_ssh2.dll to active this library.

But when i want to use it with this script for example :

<?php
$connection = ssh2_connect('shell.example.com', 22);
?>

I have this message : "Call to undefined function ssh2_connect()..."

If someone know how active this library ?

PostPosted: 08. September 2006 04:33
by Izzy
You have activated it by removing the comment tag ;

Did you do your edits in xampp/apache/bin/php.ini ?

Did you install a Secure Shell Server like openssh or any of the commercial offerings?

I believe the php extension is a dynamic link library (dll) to a sshd not a sshd in itself.

We do have some very good php gurus who frequent this forum and who may be able to throw more light on this for you.

PostPosted: 08. September 2006 12:28
by lpastor
Very good, that work with /xampp/apache/bin/php.ini.

I have modified a bad php.ini in the /xampp/php directory.

Thank you very much.

Laurent