Page 1 of 1

How to include other classes

Posted: Tue Oct 25, 2011 4:34 am
by turing_machine
Hi,

I am running a web server for which I place the php files in /var/www folder and they work fine from the browser.

Now, I wish to use SSH2 class that can be found at (http://phpseclib.sourceforge.net/docume ... t_ssh_ssh2). I have placed SSH2.php in the same folder (/var/www) but it doesn't work. I have also copied the file in /usr/share/php (which is the path returned by ini_get('include_path') command).

Where do I put my required file (SSH2.php) so that I can use it.

Thanks

Re: How to include other classes

Posted: Tue Oct 25, 2011 7:12 am
by Eric!
SSH2 requires a number of libraries to be installed like openssl, libssh2 and there is some configuration required and it varies depending on whether you are running linux or windows.