• <tfoot id='2vbDA'></tfoot>
      <legend id='2vbDA'><style id='2vbDA'><dir id='2vbDA'><q id='2vbDA'></q></dir></style></legend>
    1. <i id='2vbDA'><tr id='2vbDA'><dt id='2vbDA'><q id='2vbDA'><span id='2vbDA'><b id='2vbDA'><form id='2vbDA'><ins id='2vbDA'></ins><ul id='2vbDA'></ul><sub id='2vbDA'></sub></form><legend id='2vbDA'></legend><bdo id='2vbDA'><pre id='2vbDA'><center id='2vbDA'></center></pre></bdo></b><th id='2vbDA'></th></span></q></dt></tr></i><div id='2vbDA'><tfoot id='2vbDA'></tfoot><dl id='2vbDA'><fieldset id='2vbDA'></fieldset></dl></div>
        <bdo id='2vbDA'></bdo><ul id='2vbDA'></ul>

      1. <small id='2vbDA'></small><noframes id='2vbDA'>

        来自 PHP 内部的 SFTP

        SFTP from within PHP(来自 PHP 内部的 SFTP)
        <legend id='zUjIe'><style id='zUjIe'><dir id='zUjIe'><q id='zUjIe'></q></dir></style></legend><tfoot id='zUjIe'></tfoot>
          <bdo id='zUjIe'></bdo><ul id='zUjIe'></ul>

          <small id='zUjIe'></small><noframes id='zUjIe'>

                • <i id='zUjIe'><tr id='zUjIe'><dt id='zUjIe'><q id='zUjIe'><span id='zUjIe'><b id='zUjIe'><form id='zUjIe'><ins id='zUjIe'></ins><ul id='zUjIe'></ul><sub id='zUjIe'></sub></form><legend id='zUjIe'></legend><bdo id='zUjIe'><pre id='zUjIe'><center id='zUjIe'></center></pre></bdo></b><th id='zUjIe'></th></span></q></dt></tr></i><div id='zUjIe'><tfoot id='zUjIe'></tfoot><dl id='zUjIe'><fieldset id='zUjIe'></fieldset></dl></div>
                    <tbody id='zUjIe'></tbody>
                  本文介绍了来自 PHP 内部的 SFTP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在构建一个网络应用程序,除其他事项外,它还需要连接到 FTP 服务器以下载或上传文件.该应用程序是用 PHP 编写的,并且托管在 Linux 服务器上.

                  I'm in the process of building an web app that will, besides other things, need to connect to a FTP server to download or upload files. The application is written in PHP and it's hosted on a Linux server.

                  我想知道是否也可以提供对 SFTP 服务器的支持,但是在 Google 上进行了一些快速搜索后,似乎这并不是那么简单.

                  What I was wondering is whether or not it would be possible to also provide support for SFTP servers, but after some quick searches on Google it seems that this is not all that simple.

                  所以,问题是:在 PHP 中使用 SFTP 的最佳方式是什么?是否有一个类可以同时提供对 FTP 和 SFTP 的支持,以便两者都可以使用相同的功能?

                  So, the question is: What would be the best way to use SFTP from within PHP? Is there a class that could also provide support for FTP as well as SFTP so that same functions could be used for both?

                  推荐答案

                  是的,你可以用 卷曲.要从 FTP 切换到 SFTP,您只需将协议选项形式的 CURLPROTO_FTP 更改为 CURLPROTO_SFTP.

                  Yes, you can do that with cURL. To switch from FTP to SFTP all you have to do is to change protocol option form CURLPROTO_FTP to CURLPROTO_SFTP.

                  cURL 支持以下协议:HTTP、HTTPS、FTP、FTPS、SCP、SFTP、TELNET、LDAP、LDAPS、DICT、FILE、TFTP.

                  cURL supports following protocols: HTTP, HTTPS , FTP, FTPS, SCP, SFTP, TELNET, LDAP, LDAPS, DICT, FILE, TFTP.

                  顺便说一句.不要将 SFTP 与 FTPS 混淆.SFTP 是 SSH 文件传输协议,而 FTPS 是 FTP over SSL.

                  BTW. SFTP is not to be confused with FTPS. SFTP is SSH File Transfer Protocol, while FTPS is FTP over SSL.

                  这篇关于来自 PHP 内部的 SFTP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Laravel 4 - Connect to other database(Laravel 4 - 连接到其他数据库)
                  Call external API function from controller, LARAVEL 4(从控制器调用外部 API 函数,LARAVEL 4)
                  Empty string instead of null values Eloquent(空字符串而不是空值 Eloquent)
                  quot;laravel.logquot; could not be opened: failed to open stream(“laravel.log无法打开:无法打开流)
                  Displaying the Error Messages in Laravel after being Redirected from controller(从控制器重定向后在 Laravel 中显示错误消息)
                  Laravel Creating Dynamic Routes to controllers from Mysql database(Laravel 从 Mysql 数据库创建到控制器的动态路由)
                    <tbody id='SgYo8'></tbody>

                      <bdo id='SgYo8'></bdo><ul id='SgYo8'></ul>
                        <i id='SgYo8'><tr id='SgYo8'><dt id='SgYo8'><q id='SgYo8'><span id='SgYo8'><b id='SgYo8'><form id='SgYo8'><ins id='SgYo8'></ins><ul id='SgYo8'></ul><sub id='SgYo8'></sub></form><legend id='SgYo8'></legend><bdo id='SgYo8'><pre id='SgYo8'><center id='SgYo8'></center></pre></bdo></b><th id='SgYo8'></th></span></q></dt></tr></i><div id='SgYo8'><tfoot id='SgYo8'></tfoot><dl id='SgYo8'><fieldset id='SgYo8'></fieldset></dl></div>
                        <tfoot id='SgYo8'></tfoot><legend id='SgYo8'><style id='SgYo8'><dir id='SgYo8'><q id='SgYo8'></q></dir></style></legend>

                            <small id='SgYo8'></small><noframes id='SgYo8'>