By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,751 Members | 1,156 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,751 IT Pros & Developers. It's quick & easy.

Getting host for domain?

P: n/a
Hi

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 mycompany.com can be hosted at some ISP.... (such as
www.isp.com) how do I get the name of the ISP?

WBR
Sonnich
Oct 9 '08 #1
Share this Question
Share on Google+
2 Replies


P: n/a
jodleren escribió:
But the server mycompany.com can be hosted at some ISP.... (such as
www.isp.com) how do I get the name of the ISP?
You need to get a database with such information or borrow the service
from someone else. What you want is the RIPE NCC Database:

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

http://www.maxmind.com/app/geolocation
--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://bits.demogracia.com
-- Mi web de humor al baño María: http://www.demogracia.com
--
Oct 9 '08 #2

P: n/a
Álvaro G. Vicario wrote:
jodleren escribió:
>But the server mycompany.com can be hosted at some ISP.... (such as
www.isp.com) how do I get the name of the ISP?

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

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

http://www.maxmind.com/app/geolocation

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.
js*******@attglobal.net
==================

Oct 9 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.