Can anyone help me out in fixing the below issue which i am facing when trying to log into my site. The page contains a video uploaded using Opentok
OpenTokException
Failed to create session: Invalid response from server
melih wrote:Could you please clarify the role you think file_get_contents plays in all of this?
More specifically:
* Are you on PHP5?
melih wrote: * Are you unable to use cURL?
melih wrote: * Did your SDK not fallback to using file_get_contents?
melih wrote: * What do you think the right method to use is here?
melih wrote:Thanks.
if (function_exists("file_get_contents")) {
$context_source = array ('http' => array (
'method' => 'POST',
'header'=> Array("Content-type: application/x-www-form-urlencoded", $authStri$
)
);
$context = stream_context_create($context_source);
$res = @file_get_contents( $url ,false, $context);
Return to Discussion and Questions
Users browsing this forum: No registered users and 2 guests