Uptime of a remote server

On my website I wanted the uptime of two servers, but I don’t want to use complex SSH-stuf-remote-command-PHP-script (because of vulnerabilities).
So I was thinking about a javascript which fetches some data from the other server (again it would be time-consuming… and that was not the goal).

So last but not least… I created on both servers a php-file which generates a JPEG-file and show the uptime:


And you can check the results on this website.