Getting host for domain?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View


For debugging, I created this:

        $stuff="Client information:\r\n".
          "Server name:\t".$_SERVER['SERVER_NAME']."\r\n".
          "Server addr:\t".$_SERVER['SERVER_ADDR']."\r\n".
          "Server soft:\t".$_SERVER['SERVER_SOFTWARE']."\r\n".
          "Server host:\t".$_SERVER['SERVER_HOST']."\r\n".
          "Remote host:\t".$_SERVER['REMOTE_HOST']."\r\n".
          "Remote addr:\t".$_SERVER['REMOTE_ADDR']."\r\n".
          "PHP Version:\t".phpversion()."\r\n\r\n";

It returns information about the server in use, and the remote client
for my information.
But the server can be hosted at some ISP.... (such as how do I get the name of the ISP?


Re: Getting host for domain?

jodleren escribió:
Quoted text here. Click to load it

You need to get a database with such information or borrow the service
from someone else. What you want is the RIPE NCC Database: /

Also, Maxmind sells several IP databases which are very popular. I'm not
sure, though, whether they offer that precise information:

-- - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web:
-- Mi web de humor al baño María:

Re: Getting host for domain?

Álvaro G. Vicario wrote:
Quoted text here. Click to load it

Bearing in mind all that gives you is the company who owns the IP block.
  They may or may not be the hosting company.

Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.

Site Timeline