`

新浪云平台Storage操作PHP版

    博客分类:
  • 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

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics