gpt4 book ai didi

php - 发生客户端错误 : Could not create storage directory:/tmp/Google_Client/00

转载 作者:塔克拉玛干 更新时间:2023-11-03 05:55:02 25 4
gpt4 key购买 nike

此错误对 Youtube API v3.0 意味着什么:

A client error occurred: Could not create storage directory: /tmp/Google_Client/00

我在 Google 的文档中使用 PHP Youtube API 找到 here .

最佳答案

我在不更改 Google API 的任何行的情况下解决了这个问题。在您的 PHP 代码中,您只需要指定缓存文件夹所在的位置:

$config = new Google_Config();
$config->setClassConfig('Google_Cache_File', array('directory' => '../tmp/cache'));
// Here I set a relative folder to avoid pb on permissions to a folder like /tmp that is not permitted on my mutualised host

$client = new Google_Client($config);
// And then, you pass the config for your GoogleClient

使用 Google 日历服务对我来说效果很好。

关于php - 发生客户端错误 : Could not create storage directory:/tmp/Google_Client/00,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17282894/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com