Why can Apache hang out in a file_get_contents?



  • In the performance of the code on Denver's website below, it hangs. What's the problem?

    file_get_contents("http://the-system.org/engine/engine.php")
    

    I tried to limit the number of symbols counted, the same result.

    file_get_contents("http://the-system.org/engine/engine.php",NULL,NULL,0,1024);
    


  • Is that the problem with this website or any other thing?

    Try:

    ini_set('default_socket_timeout', 3); // максимум 3 секунды на выполнение операции чтения с сокетов.
    file_get_contents("http://the-system.org/engine/engine.php");
    



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2