Page 1 of 1

ping and PHp

Posted: Fri Aug 08, 2003 6:44 am
by devork
Hi !
Does any one have idea to check the ping status

I want to check whether my machine in home is active or not through pinging through php script
want to make it's interface in php . both machine are linux box
I have done it one way but it is intermediate solution .
Any good one ?

Posted: Sat Aug 09, 2003 7:07 am
by Gen-ik
I know you can ping a server using PHP. I think it's simply something like $is_active = ping('server_address') which returns either true or false, but you might want to check out the manual.

http://www.php.net/manual/en/