$upyun = new UpYun(‘xxx’, ‘xxx’, ‘xxx’);
$upyun->readFile(‘/uploads/11/file_1365168728_szd.rar’);
这个函数怎么用
本&文来源gaodai^.ma#com搞#代!码网
搞gaodaima代码
回复内容:
$upyun = new UpYun(‘xxx’, ‘xxx’, ‘xxx’);
$upyun->readFile(‘/uploads/11/file_1365168728_szd.rar’);
这个函数怎么用
两个用法 …
// $data 即为文件内容$data = $upyun->readFile('/temp/upload_demo.png');// 读取文件并写入本地的 /tmp/demo.png$fh = fopen('/tmp/demo.png', 'w');$upyun->readFile('/temp/upload_demo.png', $fh);fclose($fh);