新浪云平台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]