gpt4 book ai didi

google php api 应用引擎上的 PHP fatal error

转载 作者:搜寻专家 更新时间:2023-10-31 20:42:02 26 4
gpt4 key购买 nike

我的应用引擎在尝试实现 Google+ PHP API 时出现问题,它在 curl 文件“Goolge_IO.php”中出现 fatal error ,它是 https://code.google.com/p/google-api-php-client/ 上提供的库文件之一。

这是详细的错误

Fatal error: Uncaught exception 'Exception' with message 'Google CurlIO client requires the CURL PHP extension' in C:\Users\joker\Desktop\\plus\src\io\Google_CurlIO.php:47 Stack trace: #0 C:\Users\joker\Desktop\plus\src\Google_Client.php(106): Google_CurlIO->__construct() #1 C:\Users\joker\Desktop\plus\index.php(22): Google_Client->__construct() #2 C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\devappserver2\php\setup.php(100): require('C:\Users\joker\...') #3 {main} thrown in C:\Users\joker\Desktop\plus\src\io\Google_CurlIO.php on line 47

最佳答案

打开配置文件 -> google-api-php-client/src/config.php

在第 38 行,你会发现:

// Which Authentication, Storage and HTTP IO classes to use.

在它下面用这段代码替换:

// Which Authentication, Storage and HTTP IO classes to use.
'authClass' => 'Google_OAuth2',
'ioClass' => 'Google_HttpStreamIO',
'cacheClass' => 'Google_MemcacheCache',

// We need to configure fake values for memcache to work
'ioMemCacheCache_host' => 'does_not_matter',
'ioMemCacheCache_port' => '37337',

关于google php api 应用引擎上的 PHP fatal error ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19848700/

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