I am using file_get_contents on my PHP and it throws some errors:
My code
#try to fetch from remote $this->remotePath = \"http://some-hostname.com
It seems "allow_url_fopen" setting is false on your server and hence does not allow using URLs with file_get_contents().
Try using CURL instead that is a better and efficient way of communicating with other server.