Whenever we use file_get_contents, exactly what does PHP use to solve the domain title (local DNS??).

I request because I acquired this error:

Warning: file_get_contents(http://exterior-domain.com) [function.file-get-contents]: unsuccessful to spread out stream: An association attempt unsuccessful since the connected party did not correctly respond over time of time, or established connection unsuccessful because connected host has unsuccessful to respond. in C:test.php online 11

I handled to repair this exact error formerly after i used file_get_contents with an internal URL i.e. http://localhost:9090, the issue was which i did not possess a mapping of localhost to 127...one in my hosts file on my small home windows machine. After adding this, I could use file_get_contents on internal Web addresses.

Now i'm wondering, this is often fixed similarly?

Thanks all for just about any help

Are you currently behind a proxy? If that's the case, you will need to tell PHP about this using stream_context_set_default or by passing a context produced with stream_context_create because the third param to file_get_contents.