How to include other classes

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
turing_machine
Forum Newbie
Posts: 1
Joined: Tue Oct 25, 2011 4:31 am

How to include other classes

Post 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
Eric!
DevNet Resident
Posts: 1146
Joined: Sun Jun 14, 2009 3:13 pm

Re: How to include other classes

Post 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.
Post Reply