time limit
for file_get_contents
is 60 seconds which we can increase using timeout
property of http
object $opts = [
"http" => [
"method" => "GET",
"timeout"=> 1200,
"header" =>
"Channel-Name: ".CHANNEL."\r\n" .
"Authorization: ".AUTHORIZATION."\r\n"
]
];
// DOCS: https://www.php.net/manual/en/function.stream-context-create.php
$context = stream_context_create($opts); //, false, $context
$startTime = microtime(1);
$res = file_get_contents($url . $query, false, $context);