How to load phpseclib in codeigniter

﹥>﹥吖頭↗ 提交于 2019-12-02 04:14:49

the $this->load->library method is for libraries that already exist within codeigniter.

You could create a wrapper for the PHPSecLib class, however what's probably easiest at the moment is to simply include it.

  1. Download the source code fromm phpseclib's page.
  2. Upload it to the /application/third_party folder
  3. include the file.

    include(APPPATH . '/third_party/phpseclib/Net/SSH2.php');

  4. Create an instance of class your wanting to use.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!