file_get_contents() Connection timed out problem.

Posted by Syom on Stack Overflow See other posts from Stack Overflow or by Syom
Published on 2010-06-12T12:21:54Z Indexed on 2010/06/12 12:32 UTC
Read the original article Hit count: 209

Filed under:

i use file_get_contents() to get dinamic data. here is my script...

$str = file_get_contents("http://cba.am/");
some sript here...

it works fine for a long time, but now it returns Connection timed out.

and what is strange, when i run the script from local server, it works fine.

could you tell me why, and what can i do, to solve this. maybe i must set the higher timeout time in php.ini?

Thanks

© Stack Overflow or respective owner

Related posts about php