<?php
if (isset($_GET['url'])) {
    $url = $_GET['url'];
    // Fetch the image from the dynamic URL
    $image = file_get_contents($url);
    echo $image;

    // Set the appropriate content type for an image
    header('Content-Type: image/jpeg');

    // Output the image
} else {
    // Handle the case when the 'url' query parameter is not provided
    header('HTTP/1.1 400 Bad Request');
    echo 'Missing URL parameter.';
}
?>