Answers for "php file_get_contents timeout error"

PHP
1

file_get_contents timeout

$ctx = stream_context_create(array('http'=>
    array(
        'timeout' => 1200,  //1200 Seconds is 20 Minutes
    )
));

echo file_get_contents('http://example.com/', false, $ctx);
Posted by: Guest on June-22-2020

Code answers related to "php file_get_contents timeout error"

Browse Popular Code Answers by Language