我在我的服务器和我的 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/