PHP: file_get_contents - Manual - PHP: Hypertext Preprocessor
If your file_get_contents freezes during several seconds, here is maybe your answer: Beware that the default keepalive timeout of Apache 2.0 httpd is 15 seconds. This is true for HTTP/1.1 connections, which is not the default behavior of file_get_contents...