我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

PHPseclib是否需要关闭连接?

I have two questions.

1.I am using SFTP with private key and connecting through the phpseclib.Whether I need to close the connection or it will automatically close the connection.If I need to close how can I do it?

2.How to resume the upload if it is failure with phpseclib?

Thanks in advance.

  1. If you're using PHP5 the connection will close automatically because of the destructor.

  2. I don't think resuming uploads is currently possible. Might be something you want to ask the phpseclib author about adding.

近期文章

  • 如何为我的网站创建“清除缓存”按钮?
  • 解析多语言提要的最佳实践
  • PHP GD - 为Internet Explorer创建favicon.ico
  • 如何在函数内部建立mysql连接
  • Memcached高插入/更新导致死锁
  • 包含html标签的帖子显示为未格式化
  • 如何在mysql数据库中保存字符串
  • MongoCursorException'无法获取响应头'
  • 需要帮助sql查询,分组和union / join?
  • 如何将此语法转换为普通的php if else
  • 如何设置simplesamlphp以将ADFS 2用作idp
  • Codeigniter:如何将文件路径上传到数据库?
  • 最优雅的方式来对抗重复的条目
  • Authorize.net PHP会话变量被删除
  • 具有CodeIgniter上传类的文件权限
  • 在PHP邮件功能的$体系中创建一个新行
  • LinkedIn PHP登录并获取用户的信息
  • php cURL如何从文件中获取返回值
  • 如何从stdClass对象中检索值? [关闭]
  • joomla 1.7用户注册定制问题

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华