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

Popular posts from this blog

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - UML - How would you draw a try catch in a sequence diagram? -

c++ - No viable overloaded operator for references a map -