CommonPrefixes as $p){ $folders[] = (string)$p->Prefix; } foreach($xml->Contents as $c){ $key=(string)$c->Key; if ($key === $prefix) continue; // bỏ object “thư mục” rỗng chính nó $files[]=[ 'Key'=>$key, 'Size'=>(int)$c->Size, 'Time'=>date('Y-m-d H:i:s', strtotime((string)$c->LastModified)), ]; } } else $err='Không đọc được XML trả về.'; }else $err="HTTP {$r['http_code']} — ".strip_tags($r['body']); function parent_prefix(string $p): string { if($p==='') return ''; $t=rtrim($p,'/'); $pos=strrpos($t,'/'); return $pos===false? '' : substr($t,0,$pos+1); } $up = parent_prefix($prefix); ?> View Bucket

📂 Duyệt bucket:

Prefix hiện tại:

🏠 Root ⬆️ Lùi lên Trang chính Source

📁 Thư mục

(Không có thư mục)
📁 ()

🗃️ File

(Không có file)
📄
KB ·
Tải Info