【发布时间】:2018-01-18 07:29:36
【问题描述】:
我有一个 php 文件,我想从 wiki 解析一些东西。
代码是:
file_get_contents("https://en.wikipedia.org/w/api.php?format=json&action=parse");
我经常收到错误:
file_get_contents():找不到包装器“https” - 您在配置 PHP 时是否忘记启用它?
通过在 google 中搜索,我发现很多评论告诉“您必须在 wamp 中激活或取消注释 openssl_extension。”
这显然是激活的:
SEE Screenshot that proofs this is activated
有人可以帮我摆脱这个错误吗?
【问题讨论】:
-
您是否忘记在您的
URL后面填写您的"? -
实际代码中确实存在
-
请问您运行的是哪个版本的 WAMPServer?
标签: php openssl wampserver file-get-contents wamp64