简体   繁体   English

在PHP中卷曲-Google Analytics(分析)Api

[英]Curl in Php - Google Analytics Api

i downloaded and extracted Google Api for php and try to retrieve data from Google Analytics. 我下载并提取了适用于PHP的Google Api,并尝试从Google Analytics(分析)中检索数据。

when i install google api , i recognize that i have to install the extension 'CURL'. 当我安装google api时,我意识到必须安装扩展名'CURL'。

i made a research about it and i activate it from php.ini and install needed dll's 我对此进行了研究,并从php.ini中激活了它并安装了所需的dll

despite all of this i doesnt works. 尽管所有这一切,我不工作。

i take the error below 我把下面的错误 在此处输入图片说明

actually there is a file named 'apiClient.php' and in apiClient.php there are a few lines that check CURL is activated or not. 实际上,有一个名为“ apiClient.php”的文件,在apiClient.php中有几行检查CURL是否已激活。

if (! function_exists('curl_init')) {
  throw new Exception('Google PHP API Client requires the CURL PHP extension');
}

is there anything that i miss ? 我有什么想念的吗? What is the problem ? 问题是什么 ? How can i activate CURL? 如何激活CURL?

重新启动Apache是​​解决方案:)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM