Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个用 PHP 编写的程序,可以将文件分发到各种 FTP 站点。最近,我使用phpseclib添加了 SFTP 支持。登录和上传文件非常容易使用。
但是,似乎没有明确的功能来关闭连接。这对我来说很重要,因为我正在处理在处理过程中连接/断开多个站点的问题。
如何关闭 Net_SFTP 连接?
取消定义您的连接是否有效(如此 Perl 5 示例中所述)?
unset($sftp);
$sftp保持连接的变量在哪里。
$sftp