|
Posted by C. on 09/12/07 12:19
On 12 Sep, 11:17, mmar...@gmail.com wrote:
> Hi all,
> I'm trying to get the contents of a file from a URL using
> file_get_contents() or file(). It doesn't work, it eventually just
> times out. It used to display a 'failed to open file' message but now
> returns nothing at all.
>
> - it works with any site that's not on our server, eg: google.com
> - allow_url_fopen is ON (proven with the above test)
> - we have two load balanced servers with identical settings, could
> this be an issue?
>
Its an issue if you want to fetch local files this way.
Probably not a PHP isue though - more likely to be name resolution or
firewall settings. Try using wget from the command line on the server
to do the same thing and/or sniffing an attempt to connect.
C.
[Back to original message]
|