Thread: ping with php?

    #1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    Germany
    Posts
    1
    Rep Power
    0
    i want to read the /etc/hosts/ (linux) and
    ping all the Computeers in it. Is it possible
    to do this with php.
    Is it possible to run a bashscript with php.
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    Amsterdam, NL
    Posts
    3
    Rep Power
    0
    It is possible to execute a bash script.
    I think you should use exec
    http://www.php.net/manual/ref.exec.php take look there for more info

    ------------------
    LuCarD
    PHP Portal
    http://php.start4all.com

    [This message has been edited by LuCarD (edited August 02, 2000).]
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 1999
    Location
    Denmark
    Posts
    83
    Rep Power
    15
    you could do that if you are on a UNIX /LINUX box
    but on Windows????
    No idear


    ------------------
    regds..
    -ulrik-

Similar Threads

  1. Replies: 2
    Last Post: August 18th, 2004, 10:45 PM
  2. Replies: 4
    Last Post: January 28th, 2004, 08:29 AM
  3. PHP with UnixODBC
    By coder4hire in forum PHP Development
    Replies: 2
    Last Post: January 20th, 2004, 01:14 PM
  4. Passing string from PHP to Javascript
    By ka8oad in forum JavaScript Development
    Replies: 4
    Last Post: January 17th, 2004, 03:12 PM
  5. UnixODBC + PHP + Apache + Empress
    By coder4hire in forum Database Management
    Replies: 0
    Last Post: January 15th, 2004, 01:41 PM

IMN logo majestic logo threadwatch logo seochat tools logo