Php 卷曲错误60:请参阅http://curl.haxx.se/libcurl/c/libcurl-errors.html
您好,我正在尝试使用google+rest API获取配置文件数据,但我遇到以下错误: 致命错误:在C:\wamp\www\plus3\vendor\GuzzleHttp\guzzle\src\exception\RequestException.php的第51行出现未捕获的异常“GuzzleHttp\Ring\exception\RingException”,并显示消息“cURL error 60:See” 是错误屏幕截图 目前我在本地主机上工作。我已经试过了所有的方法,包括 安装composer、curl等。 不确定我做错了什么。为什么我不能从配置文件中获取数据 代码如下:Php 卷曲错误60:请参阅http://curl.haxx.se/libcurl/c/libcurl-errors.html,php,api,rest,google-plus,Php,Api,Rest,Google Plus,您好,我正在尝试使用google+rest API获取配置文件数据,但我遇到以下错误: 致命错误:在C:\wamp\www\plus3\vendor\GuzzleHttp\guzzle\src\exception\RequestException.php的第51行出现未捕获的异常“GuzzleHttp\Ring\exception\RingException”,并显示消息“cURL error 60:See” 是错误屏幕截图 目前我在本地主机上工作。我已经试过了所有的方法,包括 安装compos
<?php
include_once __DIR__ . '/../vendor/autoload.php';
include_once "templates/base.php";
session_start();
$client = new Google_Client();
$client = new Google_Client();
$client->setApplicationName("Google+ PHP Starter Application");
// credentials are intentionally not disclosed but they are correct.
$client->setClientId('XXXXXX');
$client->setClientSecret('XXXXXXX');
$client->setRedirectUri('http://localhost/....');
$client->setDeveloperKey('XXXXX');
$plus = new Google_Service_Plus($client);
//Everything works fine before this line...as soon as i write the line
//below to fetch results with name brett...it throws me an error.
$results = $plus->people->search('brett');
?>
<!doctype html>
<html>
<head><link rel='stylesheet' href='style.css' /></head>
<body>
<header><h1>Google+ Sample App</h1></header>
</body>
</html>
Google+示例应用程序
可能会晚一点,但对于将来在这些页面上闲逛的人来说:
检查php.ini文件中的选项“curl.cainfo”。指定证书的绝对路径(可从以下位置下载:)。
通过删除行开头的分号来激活该选项。重新启动Apache服务器,您应该会没事。可能会晚一点,但对于将来在这些页面上闲逛的人来说: 检查php.ini文件中的选项“curl.cainfo”。指定证书的绝对路径(可从以下位置下载:)。
通过删除行开头的分号来激活该选项。重新启动Apache服务器,您应该会没事。如果您的操作系统有centos或Fedora,则必须允许Httpd\u can\u network\u connect连接。 默认情况下,禁用所有访问httpd(nginx apache-…)
setsebool httpd_can_network_connect 1
如果您的操作系统有centos或Fedora,则必须允许Httpd\u can\u网络\u连接。 默认情况下,禁用所有访问httpd(nginx apache-…)
setsebool httpd_can_network_connect 1
你看了错误了吗?我看了…我认为它与卷曲有关…我安装了它…有没有我可以再次检查的地方?你看了错误了吗?我看了…我认为它与卷曲有关…我安装了它…有没有我可以再次检查的地方?嗨,你能告诉我怎样才能在我的家园上安装它吗,不幸的是,我对宅地不熟悉。话虽如此,;我的回答没有涉及“安装”任何东西。只是激活默认情况下已停用的选项。祝你好运!嗨,你能告诉我如何在我的宅地上安装它吗。话虽如此,;我的回答没有涉及“安装”任何东西。只是激活默认情况下已停用的选项。祝你好运!