[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-windows
Subject:    [PHP-WIN] Re: restrictions on file_get_contents()
From:       Irvin Piraman <ippiraman () gmail ! com>
Date:       2005-08-02 22:57:24
Message-ID: ee2dc79c050802155743f01e68 () mail ! gmail ! com
[Download RAW message or body]


Working it off on another webhost revealed the error: Temporary error in 
name resolution.
Apparently file_get_contents("http://www.offsiteserver.com") didn't work but 

file_get_contents("http://XXX.XXX.XXX.XXX") did.


On 8/3/05, Irvin Piraman <ippiraman@gmail.com> wrote:
> 
> 
> Hello!
> 
> I have a script that uses file_get_contents() to pull off an .html page on 
> two different remote servers.
> This was working perfectly before, but now file_get_contents() returns 
> false when pulling off the page
> from one of the sites, but successfully returns the contents from the 
> other site. But when I manually
> check if the page exists - it does.
> 
> Reading through the PHP Manual, I couldn't find any hints if a remote site 
> can explicitly deny the
> file_get_contents() request. Is this restriction possible? Any help 
> please.
> 
> Thanks in advance.
> 
> -- 
> Irvin
> http://netgarage.ne1.net 




-- 
Irvin
http://netgarage.ne1.net


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic