Re: gethostbyaddr
| From: | Masood Nasir | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Re: gethostbyaddr | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-3126@lists.php.net to get a copy of this message | ||
well, you can try that and let everyone know if it works or not. :-) what
is the error message?
-- Regards,
-- Masood Nasir :-) [Systems Engineer] - http://www.masood.net
;)
-- One Net, Lahore, Pakistan. <http://www.one.net.pk>
On Mon, 26 Jun 2000, Thomas Deliduka wrote:
> In php3 the gethostbyaddr would simply return the ip address if it couldn't
> resolve the DNS entry, and the documentation reflects this.
>
> now, in PHP4 an error is displayed to the screen, rendering some of my pages
> useless. Should I do:
>
> if (gethostbyaddr($REMOTE_ADDR)) {
> $address = gethostbyaddr($REMOTE_ADDR);
> } else {
> $address = $REMOTE_ADDR;
> }
>
> would that work?
> --
>
> Thomas Deliduka
> IT Manager
> -------------------------
> New Eve Media
> The Solution To Your Internet Angst
> http://www.neweve.com/
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>