function HTTPSFileWrapper($url, &$info) { parent::HTTPFileWrapper($url, $info); $this->setDefaultPort(443); $this->setDefaultHost('ssl://localhost'); if (isset($this->info['host'])) { $this->info['host'] = 'ssl://' . $this->info['host']; } }