我应该使用 PHP readfile() 还是 SFTP 连接通过 Web 应用程序从我的服务器下载文件?
Should I use PHP readfile() or SFTP connection to download file from my server through a web app?
我正在考虑将所有 PHP readfile() 函数调用替换为 SFTP 连接请求以从我的服务器下载文件。
这样更安全吗?
注意:我的文件与网络应用程序位于同一台服务器上,所以通过 SFTP 传递没有用吗?
感谢您的关心。
"If they're on the same server, you don't necessary need SFTP. That's like using a FTP to browse files locally on your computer – Cid 29 mins ago"
我正在考虑将所有 PHP readfile() 函数调用替换为 SFTP 连接请求以从我的服务器下载文件。
这样更安全吗?
注意:我的文件与网络应用程序位于同一台服务器上,所以通过 SFTP 传递没有用吗?
感谢您的关心。
"If they're on the same server, you don't necessary need SFTP. That's like using a FTP to browse files locally on your computer – Cid 29 mins ago"