Re: [PHP] Computer name?

2005-08-26 Thread Adrian Cid Almaguer
You can find the IP and find with it the name.

On 25/08/05, Chris Shiflett [EMAIL PROTECTED] wrote:
 Gustav Wiberg wrote:
  Is it possible to retrieve (view) the computers name from the client in
  PHP?
 
 If you mean the client, then no - this is not a standard part of an HTTP
 request.
 
 Chris
 
 --
 Chris Shiflett
 Brain Bulb, The PHP Consultancy
 http://brainbulb.com/
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 


-- 
***
   Si se encuentra bien, no se preocupe. Se le pasarĂ¡.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Computer name?

2005-08-26 Thread Jasper Bryant-Greene

Adrian Cid Almaguer wrote:

You can find the IP and find with it the name.


Certainly, you can. But do you realise what sort of slowdown doing a DNS 
lookup for (I am assuming here) every request would cause? Better to 
store the IPs and run some sort of tool on the logs later to get the 
names, maybe at a time when there's hardly any load on the server


Of course if you're only doing it in certain situations, it might be OK...

Jasper

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Computer name?

2005-08-26 Thread Richard Lynch
On Fri, August 26, 2005 2:53 am, Jasper Bryant-Greene wrote:
 Adrian Cid Almaguer wrote:
 You can find the IP and find with it the name.

 Certainly, you can. But do you realise what sort of slowdown doing a
 DNS
 lookup for (I am assuming here) every request would cause? Better to
 store the IPs and run some sort of tool on the logs later to get the
 names, maybe at a time when there's hardly any load on the server

Not only when there's a lower load on the server, but also...

A) On a different machine entirely, dedicated to DNS lookups

B) Using a tool that caches DNS results, so it doesn't lookup the same
IP address 1,000 times

DNS lookups usually (by default) take 30 seconds to time-out.  You
really don't want every page on your site to take 30 seconds to find
out that some dial-up user has no domain name for their IP address
because there simply is no domain name for that IP.

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Computer name?

2005-08-25 Thread Gustav Wiberg

Is it possible to retrieve (view) the computers name from the client in PHP?

/G
@varupiraten.se

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Computer name?

2005-08-25 Thread Chris Shiflett

Gustav Wiberg wrote:

Is it possible to retrieve (view) the computers name from the client in
PHP?


If you mean the client, then no - this is not a standard part of an HTTP 
request.


Chris

--
Chris Shiflett
Brain Bulb, The PHP Consultancy
http://brainbulb.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php