Re: [PHP] How to resolve IP with PHP

2002-01-21 Thread gaouzief

hi,

i think there is a function that does just that
look for gethostbyaddr($ip) in the documentation
beware of the implication on the ressources , this function performs a reverse dns 
lookup which can be time consuming

regards
21/01/2002 08:20:48, Police Trainee [EMAIL PROTECTED] wrote:

Hello. Can anyone tell me how to resolve an IP into a
hostname? I've tried $REMOTE_HOST but all i get back
from it is the ip or blank. Is there another
environmental variable i need to use or do i have to
do something more complicated?

thanks so much!
-mark

__
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]







-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] How to resolve IP with PHP

2002-01-20 Thread Austin Gonyou

Did you look at the function list to see if gethostbyname() or something
similar exists?

On Mon, 2002-01-21 at 01:20, Police Trainee wrote:
 Hello. Can anyone tell me how to resolve an IP into a
 hostname? I've tried $REMOTE_HOST but all i get back
 from it is the ip or blank. Is there another
 environmental variable i need to use or do i have to
 do something more complicated?
 
 thanks so much!
 -mark
 
 __
 Do You Yahoo!?
 Send FREE video emails in Yahoo! Mail!
 http://promo.yahoo.com/videomail/
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
-- 
Austin Gonyou
Systems Architect, CCNA
Coremetrics, Inc.
Phone: 512-698-7250
email: [EMAIL PROTECTED]

It is the part of a good shepherd to shear his flock, not to skin it.
Latin Proverb



signature.asc
Description: This is a digitally signed message part