I would like to create a website to show connection status for anyone who connects to the webserver.
This website would be running on my webserver located at 10.1.10.80.
I was thinking to make an index.php file that could have some code in it that would execute a two bash commands:
ping 10.1.10.2 if packets are being returned print “connected to local network.
ping google.com if packets are being returned show “connected to internet”.
I was wondering if anyone could tell me if this is possible to do.