Re: Bug #1191: nslookup broke in fsockopen on old systems
| From: | Rasmus Lerdorf | Date: | Mon, 01 Mar 1999 17:26:50 +0000 |
| Subject: | Re: Bug #1191: nslookup broke in fsockopen on old systems | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-4392@lists.php.net to get a copy of this message | ||
> 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@lists.php.net
For help: php-dev-help@lists.php.net