Re: readfile error

From: Date: Tue, 02 Mar 2004 16:48:57 +0000
Subject: Re: readfile error
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-179270@lists.php.net to get a copy of this message
Can you try : readfile("http://ip.address.here/paperchase/blogger_rss.xml") ? I don't know the cause, but I think replacing the host name with it's IP address would work... "Ashley" <afogleman@rtt-law.com> wrote in message news:20040302152809.11715.qmail@pb1.pair.com... > I posted this on Novell's PHP forum, but I have not gotten a response. > Hopefully, someone here can help me. > > <-- > I was using the readfile function on a server that was running Apache > 1.3.2, PHP 4.2.3 (PHP for Netware) and then switched to a different > server running Apache 2.0.48, PHP 4.2.3 (PHP for Netware) > > It was working just fine before I moved the file to the new server. Now > I get the following error message: > > Warning: php_network_getaddresses: gethostbyname failed in 'insert path > here' on line 6 > > Warning: > > readfile("http://jurist.law.pitt.edu/paperchase/blogger_rss.xml") > - Bad > file number in 'insert path here' on line 6 > > > Does anyone have any suggestions as to what is different or could be > causing this problem? > I have looked through the php.ini files and cannot determine anything > that could cause this. > > Thanks in advance, > Ashley > > -->

« previous php.general (#179270) next »