$opts = [
"http" => [
"method" => "GET",
"header" =>
"Channel-Name: ".CHANNEL."\r\n" .
"Authorization: ".AUTHORIZATION."\r\n"
]
];
// Then we create a stream
$context = stream_context_create($opts);
Then we pass the $content
to file_get_contents()
function as the third
parameter$result = file_get_contents($url, false, $context);