> 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
>
>
>

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

Reply via email to