Im a noob when it comes to coding and i was wondering if anyone had any ideas on a script to ping a game server and show the output on site. I just want it to automatically ping when you go on the page and show it.
I know
$is_active = ping('server_address') which returns either true or false, but is there a way to get the numerical ping.
Ping server script
Moderator: General Moderators
try executing a shell command
Code: Select all
exec("ping yourip", $resultarray);