So, i have a network monitor that pings a site.
[code]<?php
header(“refresh:300”);
$hosttest=“www.google.com”;
exec("ping -c 1 -W 1 " . $hosttest, $outputtest, $resulttest);
if ($resulttest == 0)
echo “Ping $hosttest successful!
else
echo “Ping $hosttest unsuccessful!
[/code]
Now, i want to take it a step further, i want to make this statement change an image thats on the page.
The image is a map of Aus. I want to make it ping a router in one of our offices in say, Sydney, and if down, changes the image that shows aus to change the section for NWS to Red.
How can i make one part of the page change?