BIRT 3.7
Written by: Michael Williams
Featured Refcardz: Top Refcardz:
  1. Scrum
  2. Apache Maven 2
  3. Essential MySQL
  4. Node.js
  5. Groovy
  1. jQuery Selectors
  2. Ajax
  3. Java
  4. Spring Config.
  5. Java Concurrency

Link Details

Link 113717 thumbnail
User 315207 avatar

By sah75
via codediesel.com
Published: Sep 15 2008 / 04:13

How to Ping a remote server from PHP. Great for testing if the remote server is working.
  • 16
  • 1
  • 2248
  • 0

Comments

Add your comment
User 218789 avatar

eelmore replied ago:

0 votes Vote down Vote up Reply

Ping cannot tell you if a server is working--only that it has a properly working TCP/IP stack and a network connection at the time of the ping.

User 273110 avatar

isnoop replied ago:

0 votes Vote down Vote up Reply

Well, that depends on your definition of "working". Ping is a valid baseline test, but you're right that simply being on the network doesn't mean that apache and mysql are running.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.