Create ssl:// server sockets : stream_socket_server « Network « PHP






Create ssl:// server sockets

 
<?php
$server = stream_socket_server('ssl://0.0.0.0:443');
while ($conn = stream_socket_accept($server)) {
  fclose($conn);
}
?>
  
  








Related examples in the same category