the ways of the snake

To lead the serpent full circle around the planet several php scripts lie on different servers around the globe acting as checkpoints on the snakes journey. Part of it's body in the form of an jpg image lies on the first server acting as the snakes starting and ending point. On the next server a script requests that image and adds an time and ip stamp to it. The next server in row then requests that edited image and adds a stamp to it as well. The third and last server continues to do the same and finally the resulting image gets requested from the first server again effectively closing the circle. So requesting the image on the last server triggers a chain reaction of image requests which as far as traceable trough maps of submarine cables and tracert command can tell us is forming a connection around the planet.

image.php :

    <?php

    date_default_timezone_set('Europe/Berlin');
    header("Content-type: image/jpeg");
    
    $imgPath = "https://urltosnakeimg.jpg";
    $image0 = imagecreatefromjpeg($imgPath);
    $color = imagecolorallocate($image0, 255, 255, 255);
    $string = $_SERVER['SERVER_ADDR'].' '.date("h:i:sa") ;
    $fontSize = 120;
    $x = 240;
    $y = 20;
    imagestring($image0, $fontSize, $x, $y, $string, $color);
    imagejpeg($image0);

    ?>

                
CONTINUE THE RIDE