How to find out *another site's* server information?

Discussion in 'PHP' started by Kerosene, Dec 20, 2009.

  1. #1
    I'm trying to create a basic "what is that server running" script, where I can input an IP or domain name, and get some simple info back - such as if it's running on Apache or Windows, and what the date on the server is..etc.

    Is it possible to use an IP and something like $_SERVER['SERVER_SOFTWARE'] to detect what another server is running?
     
    Kerosene, Dec 20, 2009 IP
  2. NodLemon

    NodLemon Peon

    Messages:
    27
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I would start by looking at the header:

    $info = get_headers("http://forums.digitalpoint.com");
    print_r($info);
    PHP:
     
    NodLemon, Dec 20, 2009 IP
    Kerosene likes this.
  3. Kerosene

    Kerosene Alpha & Omega™ Staff

    Messages:
    11,366
    Likes Received:
    575
    Best Answers:
    4
    Trophy Points:
    385
    #3
    Sometimes I wonder if I'm forgetting more than I'm learning.

    Thanks! :) Works perfectly.
     
    Kerosene, Dec 20, 2009 IP