I was trying to get result from shell in a remote machine in my web page using php. I used these lines:
<?php
$connection = ssh2_connect('192.168.10.10', 22);
ssh2_auth_password($connection, 'username', 'password');
$stream = ssh2_exec($connection, 'whoami');
?>
I am trying to get result in my web page in windows machine and libssh2 is already included in easyphp . but the same message:
Fatal error: Call to undefined function ssh2_connect() in C:\Program Files (x86)\EasyPHP-5.3.8.0\www\testphp_ssh.php
Any idea?