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.
我正在尝试使用 ssh2_sftp($connection) 但如果我分配这样的变量
$sftp = ssh2_sftp($connection)
我的服务器返回错误 503
但是如果我做 print_r(ssh2_sftp($connection)) 我有资源:
Resource id #137
问题是我不能这样做的其余代码:
$stream = fopen("ssh2.sftp://$sftp/path/to/file", 'r');