【问题标题】:configuring wampserver after installation to enable ssl安装后配置 wampserver 以启用 ssl
【发布时间】:2011-06-14 00:52:16
【问题描述】:

我用 Apache v2.2.17 和 PHP v5.3.5 安装了 wampserver。 当我使用带有 HTTPS URL 作为参数的函数 file_get_contents() 时,我收到以下警告:

警告:file_get_contents() [function.file-get-contents]:无法 找到包装“https” - 你有没有 当你忘记启用它 配置PHP?在 C:\wamp\www\fbapp\index.php 第 22 行

有没有办法配置 wampserver 以启用 SSL 而无需重新安装?

【问题讨论】:

标签: php apache ssl wampserver


【解决方案1】:

我查过了,你应该:

  1. 在 Apache 模块中检查 ssl_module
  2. 在 PHP 扩展中检查 php_openssl

工作! :)

【讨论】:

    【解决方案2】:

    再检查一件事:

    如果文件也没有找到,它可能会出错。所以用这个:

    $f=@file_get_contents(path);
    
    if($f){
        // your code here...
    }
    

    【讨论】:

      猜你喜欢
      • 2012-05-11
      • 1970-01-01
      • 2013-11-03
      • 1970-01-01
      • 2019-08-05
      • 1970-01-01
      • 2021-12-24
      • 2017-10-04
      • 1970-01-01
      相关资源
      最近更新 更多