无法找到套接字传输“https” [英] Unable to find the socket transport "https"

查看:173
本文介绍了无法找到套接字传输“https”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用它来检查网址的可用性:

I'm using this to check for the availability of a URL:

$fp = fsockopen($url, 443, $errno, $errstr);

我收到此错误...

警告:fsockopen()[function.fsockopen]:无法连接到 https:/ /example.com/soapserver.php:443 (无法找到套接字传输https - 您是否忘记在配置PHP时启用它?)在C:\ Home等等....

Warning: fsockopen() [function.fsockopen]: unable to connect to https://example.com/soapserver.php:443 (Unable to find the socket transport "https" - did you forget to enable it when you configured PHP?) in C:\Home etc etc....

我正在使用IIS服务器顺便说一句,(不是我不做的!)所以我认为这与没有open-ssl有关,但是我不确定。有人可以帮忙吗?

I'm using an IIS server btw,( no its not my doing! ) so I think its something to do with not having open-ssl, but I'm not sure. Can anyone help please?

我做了一个phpinfo(),我确实有ssl,但在IMAP和cURL上,就是这些。

I did a phpinfo() and I do have ssl, but on IMAP and cURL, thats all.

任何想法?

推荐答案

对于ssl,您需要在主机前加上ssl://

also for ssl you need to prefix the host with ssl://

这篇关于无法找到套接字传输“https”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆