Page 1 of 1

Ping server script

Posted: Thu Mar 18, 2004 2:20 pm
by jeff177
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.

Posted: Thu Mar 18, 2004 2:32 pm
by xisle
try executing a shell command

Code: Select all

exec("ping yourip", $resultarray);