Re: $_SERVER['REMOTE_HOST']

From: Date: Sat, 04 Oct 2003 19:13:39 +0000
Subject: Re: $_SERVER['REMOTE_HOST']
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-165050@lists.php.net to get a copy of this message
> The problem is that gethostbyaddr is an expesive call, DNS server must > be contacted. And most of the time you don't need it. Yep, its quite a pain in the ass as i found out the hard way, i had a banner software setup displaying upto 6 differient banners (and differient types. eg: text, banner, box etc) in a single page only after gethostbyaddr and damn, did it take long...as i turned off that option in the setting I got a performance boost of over 120% HTH. Cheers, -Ryan > John Taylor-Johnston wrote: > > PHP is Open Source. This is the general forum. Here is my suggestion: > > > > Create $_SERVER['REMOTE_HOST'] as a variable. > > > > $gethost = gethostbyaddr($_SERVER['REMOTE_ADDR']); > > > > is getting old. Anyone agree? > > > > The problem is that gethostbyaddr is an expesive call, DNS server must > be contacted. And most of the time you don't need it. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > >

« previous php.general (#165050) next »