I'm trying to follow the instructions for installing phpseclib.
I unpackaged everything and created a new phpseclib
folder into /usr/share/pear
. So I have the following stucture:
/usr/share/pear/phpseclib/
Net
Crypt
File
Math
I determined the /usr/share/pear
path by checking the get_include_path
method.
And now i'm trying to create a page that uses the phpsec library.
Here's the php page I'm playing with:
<?php
set_include_path(get_include_path() . PATH_SEPARATOR . 'phpseclib');
include('Net/SSH2.php');
The page bombs with an error message that says;
warning: include(Net/SSH2.php): failed to open stream: No such file or directory in /var/www/test/sshtest.php on line 4. Warning include(): failed opening 'Net/SSH2.php' for inclusion (include_path='.:/usr/share/pear:phpseclib') in /var/www/test/sshtest.php on line 4.
/var/www/test
the webfolder where my page is. Any suggestions or pointers would be appreciated.