扫码关注官方订阅号
文件在sftp上面以这种形式储存
光阴似箭催人老,日月如移越少年。
没有使用过ssh2_connect,将file_get_contents的url进行urlencode试试,然后输出下$strData
ssh2_connect
file_get_contents
urlencode
$strData
如果成功,该函数将返回写入文件中的字符数。如果失败,则返回 False。
成功
字符数
失败
False
var_dump(file_put_contents($filename, $strData)); 试试
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
没有使用过
ssh2_connect,将file_get_contents的url进行urlencode试试,然后输出下$strData如果
成功,该函数将返回写入文件中的字符数。如果失败,则返回False。