thanks for your input bogu! -c is actually an invalid command in windows... i don't know unix/linux very well (at all) but i think what the commands were doing in linux were setting it to only ping each device 2 times (count?) and i'm not sure what the other -t is for...
anyway, i've altered the code so that it looks like this:
$ping = shell_exec('ping -n 2' . $server . '');
because the ping command I want to run (in windows) would be:
ping -n 2 (servername).
The results from this (if outputted to a DOS) command would be:
Pinging (servername) [server ip address] with 32 bytes of data:
Reply from (ip address): bytes = 32 time<(time response) TTYL = x
Reply from (ip address): bytes = 32 time<(time response) TTYL = x
Ping statistics for (ip):
Packets sent = x, Received = x, Lost = x (x% loss)
Approximate round trip times in milli-seconds:
Minimum = xms, Maximum = xms, Average = xms
Where x's = numbers.
So, is my script now pulling the wrong information, since windows comes back with a different amount of data than unix (i'm assuming). How would I get it to find that loss percentage and work off of that (if 0 = online, if = 100 offline, if other = unknown).