Why might Apache hang when executing file_get_contents?

Denver freezes when executing the code on the website below. What could be causing the problem?


I tried to limit the number of characters read, the result is the same.


Answer 1, authority 100%

Problem with this site or any other too?


ini_set('default_socket_timeout', 3); //  3       .

Answer 2

Check file permissions

Answer 3

Error when the volume is very large or there is no access (404) to the page

Answer 4

use Curl