php - 验证时出现 Google 日历 SSL 错误

标签 php zend-framework ssl calendar

我在我的服务器和我的 php 构建中启用了 SSL。当我运行以下代码时

require_once 'Zend/Loader.php';
Zend_Loader::loadClass('Zend_Gdata');
Zend_Loader::loadClass('Zend_Gdata_ClientLogin');
Zend_Loader::loadClass('Zend_Gdata_Calendar');
$user = '********';
$pass = '********';
$service = Zend_Gdata_Calendar::AUTH_SERVICE_NAME; 
try {
    $client = Zend_Gdata_ClientLogin::getHttpClient($user,$pass,$service);
} catch (Exception $e) {
    echo 'Exception caught: ',  $e->getMessage(), "\n";
}

我收到以下错误信息

Unable to Connect to ssl://www.google.com:443. Error #1: Operation not permitted

有什么办法可以解决这个问题吗?

最佳答案

Error #1: Operation not permitted

本地防火墙或策略系统(如 SELinux)阻止您打开套接字连接。

您需要联系您的主机或系统管理员并要求他们进行调查。值得注意的是,许多低成本共享托管服务提供商经常阻止传出连接。

关于php - 验证时出现 Google 日历 SSL 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5552673/

相关文章:

javascript - 如何将 Yajra 数据表中的两列合并为一列

PHP MongoDB 使用 $in/$or 更新多个文档

.htaccess - 带有 .htaccess 的 HTTPS 和 REST API

java - C# HttpClient 是否忽略 SSL 证书错误?

javascript - if ajax中的条件不适用于serialize()

php - CSRF 代币 - 如何正确实现?

php - 调试 Zend Framework 1 测试失败

php - $cache->addItem 和 $cache->setItem 之间的 Zf2 缓存区别

php - 消息 : cache_dir must be a directory

php - Stripe TLS 1.2 升级问题