How to include other classes
Posted: Tue Oct 25, 2011 4:34 am
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
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