xStation: Trying to connect SSL server via PHP Socket client -
i having problem in establishing ssl connection remote server using php socket client.
connecting simple socket server easy ssl connection keeping live , doesn't respond anything, please @ code below , guide me mistake doing in following code.
page keep loading doesn't respond anything.
// command array $command = array( 'command' => 'login', 'arguments' => array( 'userid' => 'xxxxxx', 'password' => 'xxxxxx', 'appid' => 'test', 'appname' => 'test', ), ); $fp = stream_socket_client("ssl://xapia.x-station.eu:5124", $errno, $errstr, 30); if (!$fp) { die("unable connect: $errstr ($errno)"); } /* turn on encryption login phase */ fwrite($fp, json_encode($command)); while ($motd = fgets($fp)) { echo $motd; echo '<hr />'; } fclose($fp);
Comments
Post a Comment