我正在使用谷歌工作表api使用PHP访问谷歌工作表,所有在我的本地主机工作正常,但当我上传库到服务器并运行该程序时,它会抛出异常openssl_sign() [function.openssl-sign]: Unknown signature algorithm
。
实际上执行在if条件下停止并抛出异常。
$client->setAssertionCredentials($cred);
if ($client->getAuth()->isAccessTokenExpired())
{
echo "<br> execution stops here <br>";
$client->getAuth()->refreshTokenWithAssertion($cred);
}
例外:
[message:protected] => openssl_sign() [function.openssl-sign]: Unknown signature algorithm.
[file:protected] => /mywebsite/google-api-php-client/src/Google/Signer/P12.php