$response = file_get_contents($requestUri,0, $context);
给出以下错误
Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in C:\wamp\www\bing_basic.php on line 58
Warning: file_get_contents(https://api.datamarket.azure.com/Bing/Search/Web?$format=json&Query=%27dfg%27): failed to open stream: No such file or directory in C:\wamp\www\bing_basic.php on line 58
关于如何去除它们的任何建议?我正在使用Bing API密钥使用WAMP在HTML页面上获取结果。
答案 0 :(得分:1)
在php.ini文件中启用extension=php_openssl.dll
,然后重新启动服务器。