Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old October 9th, 2008, 04:55 PM
jodleren
Guest
 
Posts: n/a
Default Getting host for domain?

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
  #2  
Old October 9th, 2008, 05:15 PM
=?ISO-8859-1?Q?=22=C1lvaro_G=2E_Vicario=22?=
Guest
 
Posts: n/a
Default Re: Getting host for domain?

jodleren escribió:
Quote:
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
--
  #3  
Old October 9th, 2008, 06:35 PM
Jerry Stuckle
Guest
 
Posts: n/a
Default Re: Getting host for domain?

Álvaro G. Vicario wrote:
Quote:
jodleren escribió:
Quote:
>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.
jstucklex@attglobal.net
==================

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles