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 "| Name | Size | Last Modified | URL |
|---|---|---|---|
| $name | "; echo "$size bytes | "; echo "$lastModified | "; echo "Download | "; echo "
| No files found in container | |||
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 "
"; ?>