Re: Fopen wrapper cannot resolve ip

From: Date: Fri, 05 Jan 2001 01:10:11 +0000
Subject: Re: Fopen wrapper cannot resolve ip
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-32784@lists.php.net to get a copy of this message
First I would check your DNS server, if you know thats working then I would try this. fopen('http://somesite.com/index.html'); vs fopen('http://somesite.com/'); sorry I couldn't help more... Chris Lee Mediawaveonline.com ""Paolo Ciraci"" <ciraci@nautica.it> wrote in message news:3A54C526.31705.20E3079@localhost... > The PHP4 installed on our production machine apparently cannot > resolve ip addresses when using "fopen wrapper" functions. For > example if I issue a command like: > > $page = file ("http://www.any_host_here.com"); > > I obtain the following error: > > Warning: file("http://www.any_host_here.com") - > Bad file descriptor in /z/www/test/fopen.php on line 2 > > On the contrary if I issue the following: > > $page = file ("http://100.50.25.1"); > > there is no problem. > > Obviously PHP is compiled with fopen wrappers on and network and dns > are ok (ping or wget for example work well resolving correctly ip > numbers). > > The machine runs BSD/OS 4.1 / PHP 4.0.3pl1 / Apache 1.3.11 > > I don't want to use absolute ip to open external files! > Any ideas, suggestion ? > Thanks in advance. > > > Dr. Paolo Ciraci > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Responsabile Sistemi Informativi webmaster@nautica.it > Nautica Editrice S.r.l. > http://www.nautica.it > > -- > 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 >

« previous php.general (#32784) next »