I have installed Apache on my machine so I can use localhost as a PHP server. That works. Right now I am trying to use PHP to send files via SFTP to another server. I looked around a bit and saw phpseclib was recommended. I can't seem to figure out how to install phpseclib. Here are the lines that the website gave:
set_include_path(get_include_path() . PATH_SEPARATOR . 'phpseclib');
include('Net/SFTP.php');
You have to set the include path.
I understand what these words mean but I have been unable to get it working. I am using a mac. My server is in /Users/diego/Sites/
. Where exactly do I need to put the phpseclib
folder? What lines do I need to put in my php file so that phpseclib
is included?