ping and PHp

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
devork
Forum Contributor
Posts: 213
Joined: Fri Aug 08, 2003 6:44 am
Location: p(h) developer's network

ping and PHp

Post 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 ?
Gen-ik
DevNet Resident
Posts: 1059
Joined: Mon Aug 12, 2002 7:08 pm
Location: London. UK.

Post 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/
Post Reply