A.Decker Posted September 11, 2008 Share Posted September 11, 2008 Could someone hint to me as to how they would test connectivity with another computer? this is to make a "server status" page. Thanks Link to comment https://forums.phpfreaks.com/topic/123762-test-conectivity-with-a-server/ Share on other sites More sharing options...
DeanWhitehouse Posted September 11, 2008 Share Posted September 11, 2008 Im not sure what you mean, do you mean test a server connectivity, or a computers (as in personal computer) or are you thinking of testing an interet connections speed? Link to comment https://forums.phpfreaks.com/topic/123762-test-conectivity-with-a-server/#findComment-639062 Share on other sites More sharing options...
A.Decker Posted September 11, 2008 Author Share Posted September 11, 2008 test, to see if 1 computer can ( ping basically ) another So I may in turn make a webpage that can display the following: status: John.doe.com - online Mary.jane.org - offline Ilikepeanutes.com - offline joe.marketing.info - online Link to comment https://forums.phpfreaks.com/topic/123762-test-conectivity-with-a-server/#findComment-639349 Share on other sites More sharing options...
myndcraft Posted September 12, 2008 Share Posted September 12, 2008 Well you could do a ping like this <?php $count = 4; $url = "google.com"; $result = exec( "/sbin/ping -c {$count} {$url} | /usr/bin/grep \"packets\" | awk -F\", \" '{print \$3}'" ); // do whataver with result to determine site availability ?> Link to comment https://forums.phpfreaks.com/topic/123762-test-conectivity-with-a-server/#findComment-639490 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.