configuring wampserver after installation to enable ssl

血红的双手。 提交于 2019-12-18 05:46:08

问题


I installed wampserver with Apache v2.2.17 and PHP v5.3.5. When I use the function file_get_contents() with the HTTPS URL as a parameter, I get the following warning:

Warning: file_get_contents() [function.file-get-contents]: Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in C:\wamp\www\fbapp\index.php on line 22

Is there a way to configure wampserver to enable SSL without reinstalling it?


回答1:


I looked it up and you should:

  1. Check ssl_module in the Apache modules.
  2. Check php_openssl in the PHP extensions.

Working! :)




回答2:


And check one more thing:

It may give an error if the file is not found as well. So use this one:

$f=@file_get_contents(path);

if($f){
    // your code here...
}


来源:https://stackoverflow.com/questions/4774182/configuring-wampserver-after-installation-to-enable-ssl

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!