All pastes #962967 Raw Edit

Stuff

public text v1 · immutable
#962967 ·published 2008-03-30 03:49 UTC
rendered paste body
    case 'https':
      // Note: Only works for PHP 4.3 compiled with OpenSSL.
      $port = isset($uri['port']) ? $uri['port'] : 443;
      $host = $uri['host'] . ($port != 443 ? ':'. $port : '');
      $fp = @fsockopen('ssl://'. $uri['host'], $port, $errno, $errstr, 20);
      break;