bash - how to make index.php file show connection status -


i create website show connection status connects webserver. website running on webserver located @ 10.1.10.80.

i thinking make index.php file have code in execute 2 bash commands: ping 10.1.10.2 if packets being returned print "connected local network. ping google.com if packets being returned show "connected internet".

i wondering if tell me if possible do.


Comments