mingche 发表于 2017-3-31 07:39:15

新浪云平台Storage操作PHP版

获取Domain(qiaole)下own目录下的文件列表:
$storage = new SaeStorage();
$domain = "qiaole";
$num = 0;
while ( $ret = $storage->getList($domain, "own", 100, $num ) ) {
foreach($ret as $file) {
$file_url = $storage->getUrl($domain, $file);
echo "{$file}=>   $file_url\n";
$num ++;
}
}
echo "\nTOTAL: {$num} files\n";
  实例列表:http://qiaole.sinaapp.com/storage.php
页: [1]
查看完整版本: 新浪云平台Storage操作PHP版