Re: [PHP-DEV] Bug #1191: nslookup broke in fsockopen on old systems From: Rasmus Lerdorf (rasmus <email protected>)
Date: 03/01/99

> Not really a code issue, more an OS issue I think. On slackware doing,
>
> $fd=fsockopen("www.somewhere.com",80);
>
> if(!$fd)
> {
> echo "www.somewhere.com is not in /etc/hosts";
> }
>
> $fd=fsockopen("176.54.25.15",80); <--- made up ip
>
> if(!$fd)
> {
> echo " you will never see this echo";
> }
>
> But on Redhat, this would work either way.

This works fine on an old Slackware 3.0 box I have here. Granted, it is
running kernel 2.2.2 and glibc-2.1 and just about everything on it has
been upgraded to current versions, so there is very little original
Slackware left. I also tested on a RH-5.2 box, and like you said, it
works fine there.

-Rasmus

--
PHP Development Mailing List   http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe <email protected>
For help: php-dev-help <email protected>