473,406 Members | 2,377 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

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
Oct 9 '08 #1
2 1893
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
Á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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ian.H | last post by:
Hi all, I've tried all sorts of code to try and get this to work, but alas... Setting cookies, appears to set for the domain rather than the hostname. I've tried hardcoding, using via...
1
by: Frogbèrt | last post by:
Config: Win2K, IIS5.0 My solution requires that the host header sent to IIS be analyzed. I have set up a web site that responds to both www.domain.com and domain.com. In DNS, both a WWW and a *...
6
by: Bengt Richter | last post by:
It seems lately all my posts have been coming back to me as bounced emails, and I haven't emailed them ;-( I've been getting bounce messages like (excerpt): .......
2
by: Jeff S | last post by:
What are my options if I want to host hundreds of sites on one IIS server (like Internet presence providers do); such that site1.com, site2.com, site3.com... site278.com... are all hosted on the...
8
by: Rod | last post by:
I have been working with ASP.NET 1.1 for quite a while now. For some reason, opening some ASP.NET applications we wrote is producing the following error message: "The Web server reported...
5
by: Ron L | last post by:
I have an application I am developing which is using remoting to have a smart client connect to a remote database via IIS. There are certain functions that we only want the user to be able to...
6
by: Adam Tibi | last post by:
Hello, I want to get the right most name of the a domain name, for example: if the domain is www.myweb.com , I want to get myweb.com something.myweb.com --> myweb.com www.myweb.com.au --> ...
4
by: news | last post by:
I'm trying to mask a URL and found a great way to point one domain to another while keeping the original domain name in the browser address bar: <VirtualHost *:80> DocumentRoot...
5
by: Tom | last post by:
I have a function that restricts access to a page to logged in users. When a user who isn't logged in goes to the page, it will dynamically generate a login form. I'm trying to use it in...
2
by: DanWeaver | last post by:
I am about to launch a site using Ajax, ASP, SQL (Built using SQLExpress) & Client side javascript. I have the following uncertainties: 1) My page is a mess in Firefox having been written using...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.