3

I've a problem with my app engine while I'm trying to implement Google+ PHP API , it gives me a fatal error in curl file "Goolge_IO.php" it's one of the library files which was provided on https://code.google.com/p/google-api-php-client/

Here's the detailed error

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
4

2 回答 2

4

在 -> 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',
于 2013-11-08T04:51:58.793 回答
-1

您想再次阅读错误

'Google CurlIO client requires the CURL PHP extension'

你安装了 cURL 吗?如果你运行的是 Linux 系统,你想使用类似的东西

apt-get 安装 php5-curl

在 Windows 上,假设您使用的是 XAMPP 之类的东西,文件中已经存在 cURL 插件,您需要取消注释该行

;扩展=php_curl.dll

从您的 php.ini 文件中。

于 2013-11-07T23:45:06.437 回答