Container Contents: $container"; echo "

URL: $url

"; // Make the request $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); if ($httpCode === 200) { // Parse XML response $xml = simplexml_load_string($response); if ($xml) { echo "

Files:

"; echo ""; echo ""; if (isset($xml->Blobs->Blob)) { foreach ($xml->Blobs->Blob as $blob) { $name = (string)$blob->Name; $size = (string)$blob->Properties->{'Content-Length'}; $lastModified = (string)$blob->Properties->{'Last-Modified'}; $url = "https://$accountName.blob.core.windows.net/$container/$name?$sasToken"; $downloadLink = htmlspecialchars($url); echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; } } else { echo ""; } echo "
NameSizeLast ModifiedURL
$name$size bytes$lastModifiedDownload
No files found in container
"; } else { echo "

Error parsing XML response

"; echo "
" . htmlspecialchars($response) . "
"; } } else { echo "

Error: HTTP code $httpCode

"; echo "
" . htmlspecialchars($response) . "
"; } // Add links to switch containers echo "

"; echo "View Source Documents | "; echo "View Translated Documents"; echo "

"; ?>