0
$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 页面上获取结果。

4

1 回答 1

1

extension=php_openssl.dll在您的 php.ini 文件中启用,然后重新启动您的服务器。

于 2013-07-01T15:22:16.633 回答