Ping, and pick up results to store

Discussion in 'PHP' started by vaerge, Jul 9, 2010.

  1. #1
    Hi,

    Yes, somewhat new in PHP - so please bare with me.

    What I am trying to do is to make a script which pings some IPs X times every Y minutes, and pick up the result and store it in a database. The part about getting the IPs to ping from a list (database), doing it every Y minutes (cron job) and getting it stored in a database - those parts I can handle. What I cannot figure out how to do is this:

    Ping from PHP and pick up the result and then store it (timestamp, IP, and time in ms) in an array.

    Can someone please help me on this?

    Thanks a lot!!

    //Anders
     
    vaerge, Jul 9, 2010 IP
  2. vaerge

    vaerge Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I have it working by doing this: http://forums.devnetwork.net/viewtopic.php?f=1&t=118468&p=614957#p614946

    Thanks.
     
    vaerge, Jul 9, 2010 IP