Jump to content

How to include other classes


turing_machine

Recommended Posts

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/documentation/net.html#net_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

Link to comment
https://forums.phpfreaks.com/topic/249766-how-to-include-other-classes/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.