Answer the question
In order to leave comments, you need to log in
Problem with file_get_contents: failed to open stream: Operation now in progress
Good evening.
There was a problem when working with the Simple HTML DOM Parser library.
When working in multiple threads (I use habrahabr.ru/post/134501/ ), the following error occasionally occurs:
PHP Warning: file_get_contents(http://example.com): failed to open stream: Operation now in progress in /vendor/libraries/simplehtmldom/simple_html_dom. php on line 75
Answer the question
In order to leave comments, you need to log in
instead try using
file_get_contents('http://example.com',false,stream_context_create());
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question